public void UpdateCustomAuthDataNullPhoneBookTest() { RasEntry target = new RasEntry("Test Entry"); target.UpdateCustomAuthData(new byte[] { 0 }); }
public void UpdateCustomAuthDataTest() { bool expected = true; Mock<IRasHelper> mock = new Mock<IRasHelper>(); RasHelper.Instance = mock.Object; mock.Setup(o => o.SetCustomAuthData(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<byte[]>())).Returns(expected); RasEntry target = new RasEntry("Test Entry"); target.Owner = new RasPhoneBook(); bool actual = target.UpdateCustomAuthData(new byte[] { 0, 1, 2, 3, 4, 5 }); Assert.AreEqual(expected, actual); }