Пример #1
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));
        }
Пример #2
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));
        }