public void Parse_String_Using_Predefined_Color_Names() { var target = ArgbColorViewModel.Parse("Magenta"); Assert.Equal(0xFF, target.A); Assert.Equal(0xFF, target.R); Assert.Equal(0x00, target.G); Assert.Equal(0xFF, target.B); }
public void Parse_String_Statring_With_Hash_And_No_Alpha_Channel() { var target = ArgbColorViewModel.Parse("#ABCDEF"); Assert.Equal(0xFF, target.A); Assert.Equal(0xAB, target.R); Assert.Equal(0xCD, target.G); Assert.Equal(0xEF, target.B); }