Exemple #1
0
 public void ThrowsOnInvalid(string original)
 {
     Assert.Throws <ArgumentException>(() => NameUtils.ConvertEnumMemberName(original));
 }
Exemple #2
0
 public void ThrowsOnNull()
 {
     Assert.Throws <ArgumentNullException>(() => NameUtils.ConvertEnumMemberName(null));
 }
Exemple #3
0
            public void ConvertsValid(string original, string expected)
            {
                string actual = NameUtils.ConvertEnumMemberName(original);

                Assert.Equal(expected, actual, ignoreLineEndingDifferences: true);
            }