コード例 #1
0
ファイル: RuleViolationTests.cs プロジェクト: gmstr/GMSBlog
        public void RuleViolation_Contains_Violation_String()
        {
            var violation = new RuleViolation();

            violation.Violation = "Test";

            Assert.AreEqual("Test", violation.Violation);
        }
コード例 #2
0
ファイル: RuleViolationTests.cs プロジェクト: gmstr/GMSBlog
        public void RuleViolation_Constructor_Sets_Values()
        {
            var violation = new RuleViolation("prop", "viol");

            Assert.AreEqual("prop", violation.Property);

            Assert.AreEqual("viol", violation.Violation);
        }
コード例 #3
0
ファイル: RuleViolationTests.cs プロジェクト: gmstr/GMSBlog
        public void RuleViolation_Contains_Property_String()
        {
            var violation = new RuleViolation();

            violation.Property = "Test";

            Assert.AreEqual("Test", violation.Property);
        }
コード例 #4
0
ファイル: RuleViolationTests.cs プロジェクト: gmstr/GMSBlog
        public void RuleViolation_Class_Exists()
        {
            var violation = new RuleViolation();

            Assert.IsNotNull(violation);
        }