Esempio n. 1
0
        public void TestCreateReserveOption()
        {
            var line   = "RESERVE 1 12345ABC_2018_0F GROUP group_name";
            var actual = AutoCadOptionFactory.Create(line);

            Assert.IsType <ReserveOption>(actual);
        }
Esempio n. 2
0
        public void TestCreateGroupOption()
        {
            var line   = "GROUP group_name user_name";
            var actual = AutoCadOptionFactory.Create(line);

            Assert.IsType <GroupOption>(actual);
        }
Esempio n. 3
0
        public void TestCreateTimeoutAllOption()
        {
            var line   = "TIMEOUTALL 1800";
            var actual = AutoCadOptionFactory.Create(line);

            Assert.IsType <TimeoutAllOption>(actual);
        }
Esempio n. 4
0
        public void TestCreateGroupCaseInsensitiveOption()
        {
            var line   = "GROUPCASEINSENSITIVE ON";
            var actual = (GroupCaseInsensitiveOption)AutoCadOptionFactory.Create(line);

            Assert.IsType <GroupCaseInsensitiveOption>(actual);
            Assert.Equal("ON", actual.CaseInsensitive);
        }
Esempio n. 5
0
 public void TestCreateFromEmptyString()
 {
     Assert.Throws <InvalidAutoCadOption>(
         () => AutoCadOptionFactory.Create("")
         );
 }