|
|
@ -27,18 +27,4 @@ public class EventManagerTests |
|
|
|
// Assert |
|
|
|
// Assert |
|
|
|
Assert.AreEqual(100, progress); |
|
|
|
Assert.AreEqual(100, progress); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[TestMethod] |
|
|
|
|
|
|
|
public void RequestPageChange_ShouldBeInvoked() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
|
|
var pageType = typeof(object); |
|
|
|
|
|
|
|
eventManager.PageChangeRequested += (sender, args) => pageType = args; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
|
|
eventManager.RequestPageChange(typeof(int)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
|
|
Assert.AreEqual(typeof(int), pageType); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|