public void TestCreateReserveOption() { var line = "RESERVE 1 12345ABC_2018_0F GROUP group_name"; var actual = AutoCadOptionFactory.Create(line); Assert.IsType <ReserveOption>(actual); }
public void TestCreateGroupOption() { var line = "GROUP group_name user_name"; var actual = AutoCadOptionFactory.Create(line); Assert.IsType <GroupOption>(actual); }
public void TestCreateTimeoutAllOption() { var line = "TIMEOUTALL 1800"; var actual = AutoCadOptionFactory.Create(line); Assert.IsType <TimeoutAllOption>(actual); }
public void TestCreateGroupCaseInsensitiveOption() { var line = "GROUPCASEINSENSITIVE ON"; var actual = (GroupCaseInsensitiveOption)AutoCadOptionFactory.Create(line); Assert.IsType <GroupCaseInsensitiveOption>(actual); Assert.Equal("ON", actual.CaseInsensitive); }
public void TestCreateFromEmptyString() { Assert.Throws <InvalidAutoCadOption>( () => AutoCadOptionFactory.Create("") ); }