public void IsRGB_Valid() { var color = new ObjMaterialColor(); Assert.False(color.IsSpectral); Assert.True(color.IsRGB); Assert.False(color.IsXYZ); }
public void New() { var color = new ObjMaterialColor(); Assert.Equal(1.0f, color.SpectralFactor); Assert.False(color.IsSpectral); Assert.True(color.IsRGB); Assert.False(color.IsXYZ); }
public void IsXYZ_Valid() { var color = new ObjMaterialColor(); color.UseXYZColorSpace = true; Assert.False(color.IsSpectral); Assert.False(color.IsRGB); Assert.True(color.IsXYZ); }
public void IsSpectral_Valid() { var color = new ObjMaterialColor(); color.SpectralFileName = "a.a"; color.SpectralFactor = 2.0f; Assert.Equal(2.0f, color.SpectralFactor); Assert.True(color.IsSpectral); Assert.False(color.IsRGB); Assert.False(color.IsXYZ); }