예제 #1
0
        public void Models_AvatarModel_Update_With_Invalid_Data_Null_Should_Fail()
        {
            // Arrange

            var expect = "test";

            var data = new AvatarModel
            {
                Id = "test"
            };

            // Act
            data.Update(null);
            var result = data.Id;

            // Assert
            Assert.AreEqual(expect, result, TestContext.TestName);
        }
예제 #2
0
        public void Models_AvatarModel_Update_With_Invalid_Data_Should_Fail()
        {
            // Arrange

            var expect = "test";

            var data = new AvatarModel
            {
                Uri = "bogus"
            };

            var test = new AvatarModel
            {
                Uri = "test"
            };

            // Act
            data.Update(test);
            var result = data.Uri;

            // Assert
            Assert.AreEqual(expect, result, TestContext.TestName);
        }