Пример #1
0
        public void AddCreator_NoCreatorIF_Test()
        {
            // Arrange
            ComponentCreators target = new ComponentCreators();

            // Act
            TU.ExecuteExcectedException <QuillException>(
                () => target.Create(typeof(IComponentCreator)));
        }
Пример #2
0
        public void Create_ArgumentComponent_Test()
        {
            // Arrange
            ComponentCreators target = new ComponentCreators();

            // Act
            TU.ExecuteExcectedException <QuillException>(
                () => target.Create(typeof(ArgumentConstructorComponent)));
        }
Пример #3
0
        public void Create_ComponentTypeNull_Test()
        {
            // Arrange
            ComponentCreators target = new ComponentCreators();

            // Act
            TU.ExecuteExcectedException <ArgumentNullException>(
                () => target.Create(null));
        }
Пример #4
0
 public void Load_NotFoundQuillSection()
 {
     TU.ExecuteExcectedException <QuillException>(
         () => QuillConfigImpl.Load("Config/Impl/Files/QuillConfigImplTest_NoQuillSection.xml"));
 }
Пример #5
0
 public void Load_NotExistsPath()
 {
     TU.ExecuteExcectedException <FileNotFoundException>(() => QuillConfigImpl.Load("NotExists"));
 }
Пример #6
0
 public void Load_NullPath()
 {
     TU.ExecuteExcectedException <ArgumentNullException>(() => QuillConfigImpl.Load(null));
 }