public WinSqlite3TestFramework(IMessageSink messageSink) : base(messageSink) { messageSink.OnMessage(new DiagnosticMessage { Message = "Using custom test framework" }); if (Environment.GetEnvironmentVariable("TEST_WINSQLITE3") != null) { messageSink.OnMessage(new DiagnosticMessage { Message = "Using winsqlite3" }); SqliteEngine.UseWinSqlite3(); } }
public void UseWinSqlite3_throws_when_loaded() { var ex = Assert.Throws <InvalidOperationException>(() => SqliteEngine.UseWinSqlite3()); Assert.Equal(Strings.AlreadyLoaded, ex.Message); }