Ejemplo n.º 1
0
        public DataPrinterUnitTests()
        {
            IFormatReader formatReader = new MockFormatReader();
            IDataReader   dataReader   = new DataReader(formatReader);

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

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

            var rootManager = mockFormatReader.Read();

            Assert.NotNull(rootManager);
            Assert.IsType <Manager <IEmployee> >(rootManager);
        }
Ejemplo n.º 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);
        }