Exemplo n.º 1
0
 public void UpdateEapUserDataNullPhoneBookTest()
 {
     RasEntry target = new RasEntry("Test Entry");
     target.UpdateEapUserData(new byte[] { 0 });
 }
Exemplo n.º 2
0
        public void UpdateEapUserDataNullDataTest()
        {
            RasEntry target = new RasEntry("Test Entry");
            target.Owner = new RasPhoneBook();

            target.UpdateEapUserData(null);
        }
Exemplo n.º 3
0
        public void UpdateEapUserDataTest()
        {
            bool expected = true;

            Mock<IRasHelper> mock = new Mock<IRasHelper>();
            RasHelper.Instance = mock.Object;

            mock.Setup(o => o.SetEapUserData(It.IsAny<IntPtr>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<byte[]>())).Returns(expected);

            RasEntry target = new RasEntry("Test Entry");
            target.Owner = new RasPhoneBook();

            bool actual = target.UpdateEapUserData(new byte[] { 0 });

            Assert.AreEqual(expected, actual);
        }