Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        public void TestChemObject()
        {
            IChemObject chemObject = new ChemObject();

            Assert.IsNotNull(chemObject);
            string value = chemObject.GetProperty <string>("hello");

            Assert.IsNull(value);
        }