Ejemplo n.º 1
0
        public void GivenStudentProfileExportFileType_WhenCreate_ThenStudentProfileExportFileReturned()
        {
            ExportFileFactory target = new ExportFileFactory();

            var result = target.Create(typeof(StudentProfileExportFile)) as StudentProfileExportFile;

            Assert.IsNotNull(result);
        }
        public void GivenStudentProfileExportFileType_WhenCreate_ThenStudentProfileExportFileReturned()
        {
            ExportFileFactory target = new ExportFileFactory();

            var result = target.Create(typeof(StudentProfileExportFile)) as StudentProfileExportFile;

            Assert.IsNotNull(result);
        }
Ejemplo n.º 3
0
        public void GivenUnrecognizedType_WhenCreate_ThenThrowException()
        {
            ExportFileFactory target = new ExportFileFactory();

            target.ExpectException <InvalidOperationException>(() => target.Create(typeof(string)));
        }
Ejemplo n.º 4
0
        public void GivenNullType_WhenCreate_ThenThrowException()
        {
            ExportFileFactory target = new ExportFileFactory();

            TestExtensions.ExpectException <ArgumentNullException>(() => target.Create(null));
        }
        public void GivenUnrecognizedType_WhenCreate_ThenThrowException()
        {
            ExportFileFactory target = new ExportFileFactory();

            target.ExpectException<InvalidOperationException>(() => target.Create(typeof(string)));
        }
        public void GivenNullType_WhenCreate_ThenThrowException()
        {
            ExportFileFactory target = new ExportFileFactory();

            TestExtensions.ExpectException<ArgumentNullException>(() => target.Create(null));
        }