Example #1
0
        public void InitializeTest()
        {
            var mock = new CocoaLogViewerModuleMock();

            mock.Initialize(new ModuleInitializationContextMock());
            Assert.ThrowsException <ArgumentNullException>(() => mock.Initialize(null !));
            Assert.ThrowsException <ArgumentNullException>(() => mock.Initialize(default !));
Example #2
0
        public void DisplayNameTest()
        {
            var mock = new CocoaLogViewerModuleMock();

            Assert.IsTrue(mock.DisplayName?.Contains("Covid19Radar.LogViewer.Tests"));
            Assert.AreEqual(mock.DisplayName, typeof(VersionInfoTests).Assembly.FullName);
        }