Skip to content

Commit

Permalink
fix brokeb builds due to tests not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlacey committed May 7, 2018
1 parent 10ac979 commit 7f7462a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -311,7 +311,7 @@ public TestPage()
var sut = new SetDataContextCommandLogic(profile, logger, vs, fs);

var (anythingToAdd, lineNoToAddAfter, contentToAdd)
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel");
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel", "TestVmNamespace");

var expectedContent = @"
Expand Down Expand Up @@ -364,7 +364,7 @@ public void CanDetectWhereAndWhenToInsertPageContentAndConstructorDoesNotExist()
var sut = new SetDataContextCommandLogic(profile, logger, vs, fs);

var (anythingToAdd, lineNoToAddAfter, contentToAdd)
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel");
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel", "TestVmNamespace");

var expectedContent = @"
Expand Down Expand Up @@ -422,7 +422,7 @@ public TestPage()

var documentRoot = synTree.GetRoot();

var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", documentRoot);
var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", "TestVmNamespace", documentRoot);

Assert.IsTrue(result[0].anythingToAdd);
Assert.AreEqual(5, result[0].lineNoToAddAfter);
Expand Down Expand Up @@ -485,7 +485,7 @@ public void CanDetectWhereAndWhenToInsertConstructorAndPageContentWhenConstructo

var documentRoot = synTree.GetRoot();

var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", documentRoot);
var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", "TestVmNamespace", documentRoot);

var expectedContent0 = @"
public TestPage()
Expand Down
Expand Up @@ -304,7 +304,7 @@ End Sub
var sut = new SetDataContextCommandLogic(profile, logger, vs, fs);

var (anythingToAdd, lineNoToAddAfter, contentToAdd)
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel");
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel", "TestVmNamespace");

var expectedContent = @"
Expand Down Expand Up @@ -354,7 +354,7 @@ Inherits Page
var sut = new SetDataContextCommandLogic(profile, logger, vs, fs);

var (anythingToAdd, lineNoToAddAfter, contentToAdd)
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel");
= sut.GetCodeBehindPageContentToAdd(vs.ActiveDocumentText, vs.SyntaxTree.GetRoot(), "TestViewModel", "TestVmNamespace");

var expectedContent = @"
Expand Down Expand Up @@ -409,7 +409,7 @@ End Sub

var documentRoot = synTree.GetRoot();

var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", documentRoot);
var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", "TestVmNamespace", documentRoot);

Assert.IsTrue(result[0].anythingToAdd);
Assert.AreEqual(5, result[0].lineNoToAddAfter);
Expand Down Expand Up @@ -468,7 +468,7 @@ Inherits Page

var documentRoot = synTree.GetRoot();

var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", documentRoot);
var result = sut.GetCodeBehindContentToAdd("TestPage", "TestViewModel", "TestVmNamespace", documentRoot);

var expectedContent0 = @"
Sub New()
Expand Down

0 comments on commit 7f7462a

Please sign in to comment.