Mock conversion class for unit testing
Inheritance: OneNoteConversionTool.FormatConversion.ConversionManager
コード例 #1
0
 public void ValidateConvertInputDoc()
 {
     MockConversionManager.ConvertInput(MockFormatConverter.InputFormat, _mTestPath + TestDoc, _mTestPath);
     Assert.IsTrue(MockConversionManager.GetMockFormatConverter().IsWordToOneNoteCalled);
     Assert.IsFalse(MockConversionManager.GetMockFormatConverter().IsPdfToOneNoteCalled);
     Assert.IsFalse(MockConversionManager.GetMockFormatConverter().IsPowerPointToOneNoteCalled);
     Assert.IsFalse(MockConversionManager.GetMockFormatConverter().IsInDesignToOneNoteCalled);
 }
コード例 #2
0
        public void ValidateSupportedFormats()
        {
            var expectedFormats = new List <string>();

            expectedFormats.Add(MockFormatConverter.InputFormat);

            var supportedFormats = MockConversionManager.GetSupportedFormats();

            CollectionAssert.AreEqual(expectedFormats, supportedFormats);
        }
コード例 #3
0
 public void TestInitialize()
 {
     MockConversionManager.InitializeWithMockData();
 }