Exemple #1
0
        public void it_should_return_the_specified_default_when_parsing_fails()
        {
            int i = Int32Parser.ParseInt32("xxx", int.MinValue);

            i.Should().Be(int.MinValue);
        }
Exemple #2
0
        public void it_should_parse_1_correctly()
        {
            int i = Int32Parser.ParseInt32("1");

            i.Should().Be(1);
        }
Exemple #3
0
        public void it_should_parse_4th_correctly()
        {
            int i = Int32Parser.ParseInt32("4th");

            i.Should().Be(4);
        }
Exemple #4
0
        public void it_should_return_0_when_parsing_fails()
        {
            int i = Int32Parser.ParseInt32("xxx");

            i.Should().Be(0);
        }
Exemple #5
0
        public void it_should_parse_3rd_correctly()
        {
            int i = Int32Parser.ParseInt32("3rd");

            i.Should().Be(3);
        }
Exemple #6
0
        public void it_should_parse_2nd_correctly()
        {
            int i = Int32Parser.ParseInt32("2nd");

            i.Should().Be(2);
        }
Exemple #7
0
        public void it_should_parse_negative_1_correctly()
        {
            int i = Int32Parser.ParseInt32("-1");

            i.Should().Be(-1);
        }
 public void Activate(string enemyID = null, string count = null, string layer = null, string zoneIndex = null, string areaName = null)
 {
     Activate(DataBlockIDParser <EnemyDataBlock> .Parse(enemyID), Int32Parser.Parse(count), LG_LayerTypeParser.Parse(layer), eLocalZoneIndexParser.Parse(zoneIndex), areaName == null ? "a" : areaName.ToLower());
 }
Exemple #9
0
 public void Activate(string tier = null, string expeditionIndex = null, string value = null)
 {
     Activate(eRundownTierParser.Parse(tier), Int32Parser.Parse(expeditionIndex), Int32Parser.Parse(value));
 }