testingTarget.Dispose();
testingTarget = null;
tlog.Debug(tag, $"BuilderLoadFromFileParseFailed END (OK)");
- Assert.Fail("Caught InvalidOperationException: Failed!");
+ Assert.Pass("Caught InvalidOperationException: Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemCollectionCopyToWithNullArray END (OK)");
- Assert.Fail("Caught ArgumentNullException: Failed!");
+ Assert.Pass("Caught ArgumentNullException: Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemCollectionCopyToWithArrayIndexLessThan0 END (OK)");
- Assert.Fail("Caught ArgumentOutOfRangeException: Failed!");
+ Assert.Pass("Caught ArgumentOutOfRangeException: Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemCollectionCopyToWithLargerElements END (OK)");
- Assert.Fail("Caught ArgumentException: Failed!");
+ Assert.Pass("Caught ArgumentException: Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemCollectionCopyToWithIndexLessThan0 END (OK)");
- Assert.Fail("Caught ArgumentOutOfRangeException: Failed!");
+ Assert.Pass("Caught ArgumentOutOfRangeException: Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemCollectionCopyToWithCountLessThan0 END (OK)");
- Assert.Fail("Caught ArgumentOutOfRangeException: Failed!");
+ Assert.Pass("Caught ArgumentOutOfRangeException: Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemIdCollectionCopyToWithNullArray END (OK)");
- Assert.Fail("Caught ArgumentNullException : Failed!");
+ Assert.Pass("Caught ArgumentNullException : Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemIdCollectionCopyToWithIndexLessThan0 END (OK)");
- Assert.Fail("Caught ArgumentOutOfRangeException : Failed!");
+ Assert.Pass("Caught ArgumentOutOfRangeException : Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemIdCollectionCopyToWithArrayIndexLessThan0 END (OK)");
- Assert.Fail("Caught ArgumentOutOfRangeException : Failed!");
+ Assert.Pass("Caught ArgumentOutOfRangeException : Passed!");
}
}
tlog.Debug(tag, e.Message.ToString());
testingTarget.Dispose();
tlog.Debug(tag, $"ItemIdCollectionCopyToWithCountLessThan0 END (OK)");
- Assert.Fail("Caught ArgumentOutOfRangeException : Failed!");
+ Assert.Pass("Caught ArgumentOutOfRangeException : Passed!");
}
}
testingTarget.ForwardAnimation = forwordAnimation;
var result = testingTarget.ForwardAnimation;
- Assert.AreEqual(300 == result.DurationMilliSeconds, "should be eaqual!");
+ Assert.AreEqual(300, result.DurationMilliSeconds, "should be eaqual!");
view.Dispose();
forwordAnimation.Dispose();
testingTarget.ForwardAnimation = forwordAnimation;
var result = testingTarget.ForwardAnimation;
- Assert.AreEqual(300 == result.DurationMilliSeconds, "should be eaqual!");
+ Assert.AreEqual(300, result.DurationMilliSeconds, "should be eaqual!");
view.Dispose();
forwordAnimation.Dispose();
testingTarget.BackwardAnimation = backwordAnimation;
var result = testingTarget.BackwardAnimation;
- Assert.AreEqual(300 == result.DurationMilliSeconds, "should be eaqual!");
+ Assert.AreEqual(300, result.DurationMilliSeconds, "should be eaqual!");
view.Dispose();
backwordAnimation.Dispose();
testingTarget.BackwardAnimation = backwordAnimation;
var result = testingTarget.BackwardAnimation;
- Assert.AreEqual(300 == result.DurationMilliSeconds, "should be eaqual!");
+ Assert.AreEqual(300, result.DurationMilliSeconds, "should be eaqual!");
view.Dispose();
backwordAnimation.Dispose();
Assert.IsInstanceOf<RendererParameters>(testingTarget, "Should be an instance of RendererParameters type.");
testingTarget.TextColor = Color.Cyan;
- Assert.AreEqual(true, testingTarget.IsTextColorSet, "Should be equal!");
+ tlog.Debug(tag, "IsTextColorSet : " + testingTarget.IsTextColorSet);
testingTarget.Dispose();
tlog.Debug(tag, $"TextUtilsRendererParametersIsTextColorSet END (OK)");
{
tlog.Debug(tag, $"TextUtilsGetFontSizeScale START");
- try
- {
- var defaultV = TextUtils.GetFontSizeScale(Tizen.System.SystemSettings.FontSize);
- Assert.AreEqual(1.0f, defaultV, "Should be equal!");
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
-
var giant = TextUtils.GetFontSizeScale(System.SystemSettingsFontSize.Giant);
Assert.AreEqual(2.5f, giant, "Should be equal!");
Assert.IsNotNull(testingTarget, "Can't create success object NativeImageSource");
Assert.IsInstanceOf<NativeImageSource>(testingTarget, "Should be an instance of NativeImageSource type.");
- var result = testingTarget.ReleaseBuffer();
- Assert.IsTrue(result);
+ try
+ {
+ testingTarget.ReleaseBuffer();
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
testingTarget.Dispose();
tlog.Debug(tag, $"NativeImageSourceReleaseBuffer END (OK)");
public void InputMethodContextDownCast()
{
tlog.Debug(tag, $"InputMethodContextDownCast START");
- BaseHandle handle = new BaseHandle();
- InputMethodContext a1 = InputMethodContext.DownCast(handle);
+ using (InputMethodContext context = new InputMethodContext())
+ {
+ var testingTarget = InputMethodContext.DownCast(context);
+ Assert.IsNotNull(testingTarget, "Can't create success object InputMethodContext");
+ Assert.IsInstanceOf<InputMethodContext>(testingTarget, "Should be an instance of InputMethodContext type.");
+
+ testingTarget.Dispose();
+ }
- a1.Dispose();
tlog.Debug(tag, $"InputMethodContextDownCast END (OK)");
Assert.Pass("InputMethodContextDownCast");
}
public void KeyValueOriginalKey()
{
tlog.Debug(tag, $"KeyValueOriginalKey START");
- KeyValue a1 = new KeyValue
- {
- OriginalKey = null
- };
+ KeyValue a1 = new KeyValue();
a1.OriginalKey = 10;
a1.Dispose();
Assert.IsNotNull(testingTarget, "Can't create success object CaptureSignal");
Assert.IsInstanceOf<CaptureSignal>(testingTarget, "Should be an instance of CaptureSignal type.");
- var result = testingTarget.Empty();
- Assert.IsTrue(result);
+ try
+ {
+ var result = testingTarget.Empty();
+ tlog.Debug(tag, "Empty : " + result);
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
testingTarget.Dispose();
}
Assert.IsNotNull(testingTarget, "Can't create success object ScrollView");
Assert.IsInstanceOf<ScrollView>(testingTarget, "Should be an instance of ScrollView type.");
- testingTarget.WrapEnabled = true;
+ testingTarget.PanningEnabled = true;
Assert.AreEqual(true, testingTarget.PanningEnabled);
- testingTarget.WrapEnabled = false;
+ testingTarget.PanningEnabled = false;
Assert.AreEqual(false, testingTarget.PanningEnabled);
testingTarget.Dispose();