Exemplo n.º 1
0
            public void Must_map_to_corresponding_enum_value()
            {
                var systemUnderTest = new FooBarNullEnumerationMapper();

                BarEnum?mappedValue = systemUnderTest.GetMappedValue(null);

                Assert.That(mappedValue, Is.Null);
                Assert.That(systemUnderTest.GetMappedValue(FooEnum.Three), Is.EqualTo(BarEnum.Three));
                Assert.That(systemUnderTest.GetMappedValue(FooEnum.Four), Is.EqualTo(BarEnum.Four));
            }
Exemplo n.º 2
0
            public void Must_have_a_valid_mapping()
            {
                var systemUnderTest = new FooBarNullEnumerationMapper();

                systemUnderTest.Validate();
            }