Example #1
0
        public void AllowAssertingWhetherConstClassHasUniqueValues()
        {
            XAssert.HasUniqueConstants <ConstsWithUniqueValues>();

            var exception = Assert.Throws <DuplicateConstantException>(XAssert.HasUniqueConstants <ConstsWithRepeatingValues>);

            XAssert.Equal("Val1 <0> is a duplicate of Val3 <0>", exception.Message);
        }