Merge pull request #1759 from kc284/tests

Updated tests to reflect conversion of xenobject properties to methods.
This commit is contained in:
Mihaela Stoica 2017-09-13 17:13:24 +01:00 committed by GitHub
commit 9ccbf35224
3 changed files with 9 additions and 9 deletions

View File

@ -128,7 +128,7 @@ namespace XenAdminTests.Controls
vdi.Setup(v => v.Name()).Returns("NAME");
LunPerVdiPickerItem item = new LunPerVdiPickerItem(null, vdi.Object);
Assert.That(item.Equals(nullItem), Is.False);
vdi.VerifyGet(v=>v.Name());
vdi.Verify(v=>v.Name());
}
[Test]

View File

@ -166,14 +166,14 @@ namespace XenAdminTests.UnitTests.AlertTests
private void VerifyConnExpectations(Func<Times> times)
{
connA.VerifyGet(n => n.Name, times());
connB.VerifyGet(n => n.Name, times());
connA.Verify(n => n.Name, times());
connB.Verify(n => n.Name, times());
}
private void VerifyHostsExpectations(Func<Times> times)
{
hostA.VerifyGet(n => n.Name(), times());
hostB.VerifyGet(n => n.Name(), times());
hostA.Verify(n => n.Name(), times());
hostB.Verify(n => n.Name(), times());
}
[SetUp]

View File

@ -166,14 +166,14 @@ namespace XenAdminTests.UnitTests.AlertTests
private void VerifyConnExpectations(Func<Times> times)
{
connA.VerifyGet(n => n.Name, times());
connB.VerifyGet(n => n.Name, times());
connA.Verify(n => n.Name, times());
connB.Verify(n => n.Name, times());
}
private void VerifyHostsExpectations(Func<Times> times)
{
hostA.VerifyGet(n => n.Name(), times());
hostB.VerifyGet(n => n.Name(), times());
hostA.Verify(n => n.Name(), times());
hostB.Verify(n => n.Name(), times());
}
[SetUp]