KeywordTests.cs 508 B

1234567891011121314151617181920212223242526272829
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. namespace NTERA.Interpreter.Tests
  3. {
  4. [TestClass]
  5. public class KeywordTests
  6. {
  7. #region Console
  8. #endregion
  9. #region Arithmetic
  10. [TestMethod]
  11. public void Times()
  12. {
  13. string code =
  14. @"LOCAL = 5
  15. TIMES LOCAL, 1.5";
  16. var interpreter = Common.Create(code);
  17. Common.AssertLocal(interpreter, 7.5);
  18. }
  19. #endregion
  20. }
  21. }