public void GraphTrainPropertiesExtensionsClass_ToYamlGraphTrainPropertiesModelMethod_ReturnsObjectWithCorrectWidthProperty_IfParameterIsNotNull() { GraphTrainProperties testParam = GetTestObject(); GraphTrainPropertiesModel testOutput = testParam.ToYamlGraphTrainPropertiesModel(); Assert.AreEqual(testParam.Width, testOutput.Width); }
public void GraphTrainPropertiesExtensionsClass_ToYamlGraphTrainPropertiesModelMethod_ReturnsObjectWithCorrectColourProperty_IfParameterIsNotNull() { GraphTrainProperties testParam = GetTestObject(); GraphTrainPropertiesModel testOutput = testParam.ToYamlGraphTrainPropertiesModel(); Assert.AreEqual(testParam.Colour.ToArgb().ToString("X8", CultureInfo.InvariantCulture), testOutput.Colour); }
public void GraphTrainPropertiesExtensionsClass_ToYamlGraphTrainPropertiesModelMethod_ReturnsObjectWithCorrectDashStyleNameProperty_IfParameterIsNotNull() { GraphTrainProperties testParam = GetTestObject(); GraphTrainPropertiesModel testOutput = testParam.ToYamlGraphTrainPropertiesModel(); Assert.AreEqual(testParam.DashStyle.ToString("g"), testOutput.DashStyleName); }
public void GraphTrainPropertiesExtensionsClass_ToYamlGraphTrainPropertiesModelMethod_ThrowsNullReferenceException_IfParameterIsNull() { GraphTrainProperties testParam = null; _ = testParam.ToYamlGraphTrainPropertiesModel(); Assert.Fail(); }