示例#1
0
        public void VersionAppModel_Update_Valid_Data_Good_Should_Pass()
        {
            // Arrange
            var myData    = new VersionAppModel();
            var myDataNew = new VersionAppModel
            {
                VersionAppName = "New",
                ReleaseNotes   = "ReleaseNotes",
                // TODO:  Add your atttrbutes here

                ID = myData.ID
            };

            // Act
            myData.Update(myDataNew);

            // Assert
            Assert.AreEqual("New", myData.VersionAppName);
            Assert.AreEqual("ReleaseNotes", myData.ReleaseNotes);
            // TODO:  Add an Assert for each attribute that should change


            Assert.AreNotEqual(myData.Date, myDataNew.Date);
            // TODO:  Add an Assert for each attribute that thould Not change
        }
示例#2
0
        public void VersionAppModel_Update_InValid_Data_Null_Should_Fail()
        {
            // Arrange
            var myData = new VersionAppModel();

            // Act
            var result = myData.Update(null);

            // Assert
            Assert.AreEqual(false, result);
        }