public void SucceedsWithOneColor() { var wireColor = new WireColor(Id, BlueCode, BlueName, BlueNameTranslatedName, _blueColor, null); wireColor.ShouldNotBeNull(); wireColor.Id.ShouldBe(Id); wireColor.Code.ShouldBe(BlueCode); wireColor.Name.ShouldBe(BlueName); wireColor.TranslatedName.ShouldBe(BlueNameTranslatedName); wireColor.BaseColor.ShouldBe(_blueColor); wireColor.StripeColor.ShouldBeNull(); }
public void SucceedsWithTwoColors() { var wireColor = new WireColor(Id, LavenderBlackCode, LavenderBlackName, LavenderBlackTranslatedName, _lavenderColor, _blackColor); wireColor.ShouldNotBeNull(); wireColor.Id.ShouldBe(Id); wireColor.Code.ShouldBe(LavenderBlackCode); wireColor.Name.ShouldBe(LavenderBlackName); wireColor.TranslatedName.ShouldBe(LavenderBlackTranslatedName); wireColor.BaseColor.ShouldBe(_lavenderColor); wireColor.StripeColor.ShouldBe(_blackColor); }