public void TestCanSaveTrue()
        {
            //arrange
            _target.TestPassed = true;

            //act
            var result = _target.CanSave();

            //assert
            Assert.IsTrue(result);
        }
Example #2
0
        public void TestCanSaveTrue()
        {
            //arrange
            _target.HostName = "host";

            //act
            var result = _target.CanSave();

            //assert
            Assert.IsTrue(result);
        }
        public void TestCanSaveFalse()
        {
            //arrange
            _target.HostName = string.Empty;

            //act
            var result = _target.CanSave();

            //assert
            Assert.IsFalse(result);
        }