Exemplo n.º 1
0
        public void ShouldUseFirstWorksheetNameWhenBuildIsCalledWithoutParams()
        {
            _excelDataProvider.Stub(x => x.GetWorksheetNames()).Return(new List <string> {
                "a", "b"
            });
            _excelDataProvider.Stub(x => x.GetWorksheetFormulas("a")).Return(new Dictionary <string, string>());
            var chain = _builder.Build();

            _excelDataProvider.AssertWasCalled(x => x.GetWorksheetFormulas("a"));
        }