public void TestMarkWithError_IChemObject() { IChemObject obj = new ChemObject(); Assert.IsNull(obj.GetProperty <bool?>(ProblemMarker.ErrorMarker)); ProblemMarker.MarkWithError(obj); Assert.IsNotNull(obj.GetProperty <bool?>(ProblemMarker.ErrorMarker)); }
public void TestMarkWithWarning_IChemObject() { IChemObject obj = new ChemObject(); Assert.IsNull(obj.GetProperty <bool?>(ProblemMarker.WarningMarker)); ProblemMarker.MarkWithWarning(obj); Assert.IsNotNull(obj.GetProperty <bool?>(ProblemMarker.WarningMarker)); }
public void TestChemObject() { IChemObject chemObject = new ChemObject(); Assert.IsNotNull(chemObject); string value = chemObject.GetProperty <string>("hello"); Assert.IsNull(value); }