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

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

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

            var rootManager = mockFormatReader.Read();

            Assert.NotNull(rootManager);
            Assert.IsType <Manager <IEmployee> >(rootManager);
        }
Exemple #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);
        }