7 instantiations of ModifyJsonPostActionTestCase
Microsoft.TemplateEngine.Cli.UnitTests (7)
PostActionTests\AddJsonPropertyPostActionTests.cs (7)
447
new
(
462
new
(
477
new
(
499
new
(
524
new
(
538
new
(
552
new
(
16 references to ModifyJsonPostActionTestCase
Microsoft.TemplateEngine.Cli.UnitTests (16)
PostActionTests\AddJsonPropertyPostActionTests.cs (16)
102
[MemberData(nameof(
ModifyJsonPostActionTestCase
<Mock<IReporter>>.InvalidConfigurationTestCases), MemberType = typeof(
ModifyJsonPostActionTestCase
<Mock<IReporter>>))]
103
public void FailsWhenMandatoryArgumentsNotConfigured(
ModifyJsonPostActionTestCase
<Mock<IReporter>> testCase)
137
[MemberData(nameof(
ModifyJsonPostActionTestCase
<(JsonNode, bool)>.SuccessTestCases), MemberType = typeof(
ModifyJsonPostActionTestCase
<(JsonNode, bool)>))]
138
public void CanSuccessfullyModifyJsonFile(
ModifyJsonPostActionTestCase
<(JsonNode, bool)> testCase)
173
[MemberData(nameof(
ModifyJsonPostActionTestCase
<(JsonNode, bool)>.SuccessTestCases), MemberType = typeof(
ModifyJsonPostActionTestCase
<(JsonNode, bool)>))]
174
public void CanSuccessfullyCreateAndModifyJsonFileWhenAllowFileCreationAndPathCreationAreSet(
ModifyJsonPostActionTestCase
<(JsonNode, bool)> testCase)
208
[MemberData(nameof(
ModifyJsonPostActionTestCase
<(JsonNode, bool)>.SuccessTestCases), MemberType = typeof(
ModifyJsonPostActionTestCase
<(JsonNode, bool)>))]
209
public void CanSuccessfullyModifyJsonFileWhenPathDoesNotExistAndAllowPathCreationIsSet(
ModifyJsonPostActionTestCase
<(JsonNode, bool)> testCase)
445
private static readonly
ModifyJsonPostActionTestCase
<(JsonNode ResultingJson, bool IsNewJson)>[] _successTestCases =
522
private static readonly
ModifyJsonPostActionTestCase
<Mock<IReporter>>[] _invalidConfigurationTestCases =
571
foreach (
ModifyJsonPostActionTestCase
<(JsonNode, bool)> testCase in _successTestCases)
579
foreach (
ModifyJsonPostActionTestCase
<Mock<IReporter>> testCase in _invalidConfigurationTestCases)