public void ResolveEnumContractWithoutSystemAttributesTest()
        {
            var resolver  = new XmlContractResolver(NamingConventions.CamelCase, ignoreSystemAttributes: true);
            var valueType = typeof(TestEnum);

            var actual = resolver.ResolveContract(valueType);

            var expected = new XmlEnumContractBuilder <TestEnum>()
                           .SetName("testEnum")
                           .SetItem(TestEnum.True, "true")
                           .SetItem(TestEnum.False, "false")
                           .SetItem(TestEnum.SomethingElse, "somethingElse")
                           .BuildContract();

            XmlContractAssert.AreEqual(expected, actual);
        }
        public void ResolveEnumContractTest()
        {
            var resolver  = new XmlContractResolver();
            var valueType = typeof(TestEnum);

            var actual = resolver.ResolveContract(valueType);

            var expected = new XmlEnumContractBuilder <TestEnum>()
                           .SetName("Enum")
                           .SetItem(TestEnum.True, "1")
                           .SetItem(TestEnum.False, "0")
                           .SetItem(TestEnum.SomethingElse, "-")
                           .BuildContract();

            XmlContractAssert.AreEqual(expected, actual);
        }