Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a couple of asserts for the properties. #10437

Merged
merged 2 commits into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ public class WorkspaceDependencyViewExtension : IViewExtension, ILogSource
internal MenuItem workspaceReferencesMenuItem;
private const String extensionName = "Workspace References";

internal WorkspaceDependencyView DependencyView
{
get;
set;
}
internal WorkspaceDependencyView DependencyView;
QilongTang marked this conversation as resolved.
Show resolved Hide resolved


internal PackageManagerExtension pmExtension;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ public void WillNotAddDupWorkspaceDependencyViewExtensionLoadTest()
Assert.AreEqual(initialNum, View.ExtensionTabItems.Count);
}

[Test]
public void TestPropertiesWithCodeInIt()
{
Assert.AreEqual("Workspace References", viewExtension.Name);

Assert.AreEqual("A6706BF5-11C2-458F-B7C8-B745A77EF7FD", viewExtension.UniqueId);

}

public static void RaiseLoadedEvent(FrameworkElement element)
{
MethodInfo eventMethod = typeof(FrameworkElement).GetMethod("OnLoaded",
Expand Down