Beispiel #1
0
        public DataPrinterUnitTests()
        {
            IFormatReader formatReader = new MockFormatReader();
            IDataReader   dataReader   = new DataReader(formatReader);

            this._rootManager = dataReader.Read();
        }
Beispiel #2
0
        public void MockFormatReaderCreationTest()
        {
            IFormatReader mockFormatReader = new MockFormatReader();

            Assert.NotNull(mockFormatReader);
            Assert.IsType <MockFormatReader>(mockFormatReader);
        }
Beispiel #3
0
        public void MockFormatReaderReadTest()
        {
            IFormatReader mockFormatReader = new MockFormatReader();

            var rootManager = mockFormatReader.Read();

            Assert.NotNull(rootManager);
            Assert.IsType <Manager <IEmployee> >(rootManager);
        }
Beispiel #4
0
        public void DataReaderReadTest()
        {
            IFormatReader formatReader = new MockFormatReader();
            IDataReader   dataReader   = new DataReader(formatReader);

            var rootManager = dataReader.Read();

            Assert.NotNull(rootManager);
            Assert.IsType <Manager <IEmployee> >(rootManager);
        }