Exemplo n.º 1
0
 public void VerifyThrowRequest()
 {
     Assert.Throws(typeof(ArgumentNullException), () => AssemblyNameAligner.Execute(string.Empty, new List <string>()
     {
         "a.b", "a.b.c"
     }));
 }
Exemplo n.º 2
0
        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]);
            }
        }
Exemplo n.º 3
0
 public void VerifyThrowOptions()
 {
     Assert.Throws(typeof(ArgumentNullException), () => AssemblyNameAligner.Execute("test", Enumerable.Empty <string>().ToList()));
 }