コード例 #1
0
ファイル: LogParser.cs プロジェクト: abra-cadabra/usut
        public LogParser()
        {
            LogRecordRegex = @"\[(?<time>.+)\] ScriptLog: UNIT_TEST\{Location:(?<location>.+)\}\{Message:(?<message>.*)\}\{(?<assertion>.+):(?<values>.*)\}";
            StringValueSeparator = @"|=|=|";
            NumberValueSeparator = @",";

            //Create manager and fill it with known assertions
            AssertionManger = new AssertionManger
                {
                    new AssertTrue(),
                    new AssertFalse(),
                    new AssertIntEqual(),
                    new AssertStringEqual(),
                    new AssertAlmostEqual(),
                    new AssertVectorAlmostEqual()
                };
        }
コード例 #2
0
        public LogParser()
        {
            LogRecordRegex       = @"\[(?<time>.+)\] ScriptLog: UNIT_TEST\{Location:(?<location>.+)\}\{Message:(?<message>.*)\}\{(?<assertion>.+):(?<values>.*)\}";
            StringValueSeparator = @"|=|=|";
            NumberValueSeparator = @",";

            //Create manager and fill it with known assertions
            AssertionManger = new AssertionManger
            {
                new AssertTrue(),
                new AssertFalse(),
                new AssertIntEqual(),
                new AssertStringEqual(),
                new AssertAlmostEqual(),
                new AssertVectorAlmostEqual()
            };
        }
コード例 #3
0
 public void SetUp()
 {
     _tester = new AssertionManger();
 }
コード例 #4
0
 public void CtorTest()
 {
     _tester = new AssertionManger();
     _tester.GetAssertions().Should().BeEmpty();
     _tester.Count.Should().Be(0);
 }