public void HoverGetScreenPosition() { tlog.Debug(tag, $"HoverGetScreenPosition START"); /* TEST CODE */ Hover hover = new Hover(); Assert.AreEqual(0.0f, hover.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X"); Assert.AreEqual(0.0f, hover.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y"); hover.Dispose(); tlog.Debug(tag, $"HoverGetScreenPosition END (OK)"); Assert.Pass("HoverGetScreenPosition"); }
public void HoverGetScreenPosition() { tlog.Debug(tag, $"HoverGetScreenPosition START"); var testingTarget = new Hover(); Assert.IsNotNull(testingTarget, "Can't create success object Hover"); Assert.IsInstanceOf <Hover>(testingTarget, "Should be an instance of Hover type."); Assert.AreEqual(0.0f, testingTarget.GetScreenPosition(0).X, "Should be equals to the origin value of ScreenPosition.X"); Assert.AreEqual(0.0f, testingTarget.GetScreenPosition(0).Y, "Should be equals to the origin value of ScreenPosition.Y"); testingTarget.Dispose(); tlog.Debug(tag, $"HoverGetScreenPosition END (OK)"); Assert.Pass("HoverGetScreenPosition"); }