public void ValidationThrows_ApiNotSet() { var options = new PiwikSinkOptions() { AppHostName = "test", TelemetrySource = Mock.Of <Core.Impl.ITelemetrySource>() }; options.Validate(); }
public void ValidationThrows_TelemetrySourceNotSet() { var options = new PiwikSinkOptions() { AppHostName = "test", Api = Mock.Of <Api.IPiwikApi>() }; options.Validate(); }
public void ValidationPasses() { var options = new PiwikSinkOptions() { AppHostName = "test", Api = Mock.Of <Api.IPiwikApi>(), TelemetrySource = Mock.Of <Core.Impl.ITelemetrySource>() }; options.Validate(); Assert.IsTrue(true, "This test should not fail."); }