public void RadianConstructorWithFloat() { tlog.Debug(tag, $"RadianConstructorWithFloat START"); var testingTarget = new Radian(10.0f); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance."); testingTarget.Dispose(); tlog.Debug(tag, $"RadianConstructorWithFloat END (OK)"); }
public void RadianConstructorWithDegree() { tlog.Debug(tag, $"RadianConstructorWithDegree START"); using (Degree degree = new Degree()) { var testingTarget = new Radian(degree); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance."); testingTarget.Dispose(); } tlog.Debug(tag, $"RadianConstructorWithDegree END (OK)"); }
public void RadianValue() { tlog.Debug(tag, $"RadianValue START"); var testingTarget = new Radian(10.0f); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance."); testingTarget.Value = 30.0f; Assert.AreEqual(30.0f, testingTarget.Value, "radian function does not work, return error value"); testingTarget.Dispose(); tlog.Debug(tag, $"RadianValue END (OK)"); }
public void RadianConvertToFloat() { tlog.Debug(tag, $"RadianConvertToFloat START"); var testingTarget = new Radian(10.0f); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance."); var result = testingTarget.ConvertToFloat(); Assert.AreEqual(10.0f, result, "ConvertToFloat function does not work, return error value"); testingTarget.Dispose(); tlog.Debug(tag, $"RadianConvertToFloat END (OK)"); }
public void RadianDispose() { tlog.Debug(tag, $"RadianDispose START"); var testingTarget = new Radian(10.0f); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <Radian>(testingTarget, "Should return Radian instance."); try { testingTarget.Dispose(); } catch (Exception e) { Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"RadianDispose END (OK)"); }