-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
76 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
Abc.MoqComplete/Abc.MoqComplete.Tests/ContextAction/Services/ParameterProviderTests.cs
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...oqComplete/Abc.MoqComplete.Tests/data/ContextAction/fill_primary_constructor_with_mock.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using NUnit.Framework; | ||
using System; | ||
using Moq; | ||
|
||
namespace ConsoleApp1.Tests | ||
{ | ||
public class Test1(ITest test, ITest2 test2) | ||
{ | ||
|
||
public interface ITest | ||
{ | ||
void Coco(ITest test, ITest test2, string test3); | ||
} | ||
public interface ITest2 | ||
{ | ||
} | ||
} | ||
|
||
[TestFixture] | ||
public class TestClass | ||
{ | ||
[Test] | ||
public void METHOD() | ||
{ | ||
var t = new Test1({ caret }); | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...plete/Abc.MoqComplete.Tests/data/ContextAction/fill_primary_constructor_with_mock.cs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using NUnit.Framework; | ||
using System; | ||
using Moq; | ||
|
||
namespace ConsoleApp1.Tests | ||
{ | ||
public class Test1(ITest test, ITest2 test2) | ||
{ | ||
|
||
public interface ITest | ||
{ | ||
void Coco(ITest test, ITest test2, string test3); | ||
} | ||
public interface ITest2 | ||
{ | ||
} | ||
} | ||
|
||
[TestFixture] | ||
public class TestClass | ||
{ | ||
private Mock<ITest> myTest; | ||
private Mock<ITest2> myTest2; | ||
|
||
[Test] | ||
public void METHOD() | ||
{ | ||
myTest = new Mock<ITest>(); | ||
myTest2 = new Mock<ITest2>(); | ||
var t = new Test1(myTest.Object, myTest2.Object{caret}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters