private void CheckGenerateCode(Int32 value, UInt16 expected, String message) { HexaDecimalConstant target = new HexaDecimalConstant(value); Word[] expectedWords = WordTest.MakeArray(expected); ICodeGeneratorTest.CheckGenerateCode(target, expectedWords, message); }
public void TestInitialize() { DecimalConstant decimalConstant = new DecimalConstant(DecimalValue); HexaDecimalConstant hexaDecimalConstant = new HexaDecimalConstant(HexaDecimalValue); AddressConstant addressConstant = new AddressConstant("LBL001"); StringConstant stringConstant = new StringConstant(StringValue); m_constants = ConstantCollection.MakeForUnitTest( decimalConstant, hexaDecimalConstant, addressConstant, stringConstant); }
private void CheckCtor(Int32 value, Boolean success, String message) { try { HexaDecimalConstant notUsed = new HexaDecimalConstant(value); Assert.IsTrue(success, message); } catch (Casl2SimulatorException) { Assert.IsFalse(success, message); } }
private void CheckIsStart(Char firstChar, Boolean expected, String message) { Boolean actual = HexaDecimalConstant.IsStart(firstChar); Assert.AreEqual(expected, actual, message); }
public void TestInitialize() { m_target = new HexaDecimalConstant(0); }
internal static void Check(HexaDecimalConstant expected, HexaDecimalConstant actual, String message) { Assert.AreEqual(expected.Value, actual.Value, "Value: " + message); }