public bool PosTest1()
{
bool retVal = true;
UnicodeEncoding uE = new UnicodeEncoding(true,false);
Byte[] expectedValue = new Byte[] { };
Byte[] actualValue;
TestLibrary.TestFramework.BeginScenario("PosTest1:Invoke the method with bigEndian true and byteOrderMark false.");
try
{
actualValue = uE.GetPreamble();
if (expectedValue.Equals(actualValue))
{
TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
retVal = false;
}
}
catch (Exception e)
{
TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
retVal = false;
}
return retVal;
}