public void CowboyType_DbValuesRoundTrip_ReturnsOriginalValue() { foreach (var type in CowboyType.All()) { type.ShouldBeSameAs(CowboyType.FromDbValue(type.ToDbValue()), type + " did not round trip successfully"); } }
public void CowboyType_All_ReturnsAllThreeValues() { var types = CowboyType.All().ToArray(); types.ShouldContain(CowboyType.Good); types.ShouldContain(CowboyType.Bad); types.ShouldContain(CowboyType.Ugly); }