mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
31 lines
713 B
C#
31 lines
713 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace TestSuite.Tests
|
|
{
|
|
public class ParseTest : TestBase
|
|
{
|
|
public override string Name
|
|
{
|
|
get { return "Parsing"; }
|
|
}
|
|
|
|
public override void Initialize()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Teardown()
|
|
{
|
|
|
|
}
|
|
|
|
public override void Test()
|
|
{
|
|
Assert(short.Parse("5") == 5, "short.Parse(\"5\") == 5");
|
|
Assert(short.Parse("500") == 500, "short.Parse(\"500\") == 500");
|
|
Assert(short.Parse("-500") == -500, "short.Parse(\"-500\") == -500");
|
|
}
|
|
}
|
|
}
|