예제 #1
0
        public void Model_StoreBuyAndKeep_Valid_ExpectTypeRquiredErrors()
        {
            var model = new StoreBuyAndKeepModel
            {
                Cost = 0
            };

            var results = TestModelHelper.Validate(model);

            Assert.AreEqual(1, results.Count);
            Assert.AreEqual("The Title field is required.", results[0].ErrorMessage);
        }
예제 #2
0
        public void Model_StoreBuyAndKeep_Valid_Exists()
        {
            var model = new StoreBuyAndKeepModel();

            Assert.IsNotNull(model);
        }