mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #1759 from kc284/tests
Updated tests to reflect conversion of xenobject properties to methods.
This commit is contained in:
commit
9ccbf35224
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user