Ejemplo n.º 1
0
 public void CowboyType_DbValuesRoundTrip_ReturnsOriginalValue()
 {
     foreach (var type in CowboyType.All())
     {
         type.ShouldBeSameAs(CowboyType.FromDbValue(type.ToDbValue()), type + " did not round trip successfully");
     }
 }
Ejemplo n.º 2
0
        public void CowboyType_All_ReturnsAllThreeValues()
        {
            var types = CowboyType.All().ToArray();

            types.ShouldContain(CowboyType.Good);
            types.ShouldContain(CowboyType.Bad);
            types.ShouldContain(CowboyType.Ugly);
        }