コード例 #1
0
        public void IsValid_IsValid_ExpectFalse()
        {
            var attr = new ExpectedAttribute(new[] { "Danger", "Mouse" }, true);

            attr.IsValid("Mouse")
            .Should()
            .BeTrue();
        }
コード例 #2
0
        public void GenerateMessage_True_ExpectNonNull()
        {
            var attr = new ExpectedAttribute(new[] { "Danger", "Mouse" }, true);

            attr.IsValid("Penfold");
            attr.ErrorMessage
            .Should()
            .NotBeNull();
        }