public void VerifyThrowRequest() { Assert.Throws(typeof(ArgumentNullException), () => AssemblyNameAligner.Execute(string.Empty, new List <string>() { "a.b", "a.b.c" })); }
public void VerifyMultiInput(string[] input, string[] output) { if (input.Length != output.Length) { throw new Exception($"Invalid test configuration - Uneven amount of input/output"); } for (var index = 0; index < input.Length; index++) { AssemblyNameAligner.Execute(input[index], input).Should().Be(output[index]); } }
public void VerifyThrowOptions() { Assert.Throws(typeof(ArgumentNullException), () => AssemblyNameAligner.Execute("test", Enumerable.Empty <string>().ToList())); }