From b1dd9c9a8418cb094a6aa9c30b08745097df8dfb Mon Sep 17 00:00:00 2001 From: Gaspar Nagy Date: Thu, 29 Aug 2024 17:25:07 +0200 Subject: [PATCH] Update MsTest dependency of V1 Connectors --- .../FakeTestContext.cs | 27 ++++++++++--------- ...l.VisualStudio.ReqnrollConnector.V1.csproj | 2 +- .../FakeTestContext.cs | 25 ++++++++--------- ...w.VisualStudio.SpecFlowConnector.V1.csproj | 2 +- 4 files changed, 29 insertions(+), 27 deletions(-) diff --git a/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/FakeTestContext.cs b/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/FakeTestContext.cs index dc213fc6..af35f1c3 100644 --- a/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/FakeTestContext.cs +++ b/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/FakeTestContext.cs @@ -4,6 +4,7 @@ using System.Data.Common; using Microsoft.VisualStudio.TestTools.UnitTesting; +// ReSharper disable once CheckNamespace namespace Reqnroll.VisualStudio.ReqnrollConnector.Discovery; internal class FakeTestContext : TestContext @@ -14,37 +15,37 @@ internal class FakeTestContext : TestContext public override DbConnection DataConnection => throw new NotImplementedException(); - public override void AddResultFile(string fileName) + public override void AddResultFile(string? fileName) { throw new NotImplementedException(); } - public override void BeginTimer(string timerName) - { - throw new NotImplementedException(); - } + //public override void BeginTimer(string timerName) + //{ + // throw new NotImplementedException(); + //} - public override void EndTimer(string timerName) - { - throw new NotImplementedException(); - } + //public override void EndTimer(string timerName) + //{ + // throw new NotImplementedException(); + //} - public override void Write(string message) + public override void Write(string? message) { throw new NotImplementedException(); } - public override void Write(string format, params object[] args) + public override void Write(string? format, params object?[] args) { throw new NotImplementedException(); } - public override void WriteLine(string message) + public override void WriteLine(string? message) { throw new NotImplementedException(); } - public override void WriteLine(string format, params object[] args) + public override void WriteLine(string? format, params object?[] args) { throw new NotImplementedException(); } diff --git a/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/Reqnroll.VisualStudio.ReqnrollConnector.V1.csproj b/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/Reqnroll.VisualStudio.ReqnrollConnector.V1.csproj index d15f4194..d1d7fd2f 100644 --- a/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/Reqnroll.VisualStudio.ReqnrollConnector.V1.csproj +++ b/Connectors/Reqnroll.VisualStudio.ReqnrollConnector.V1/Reqnroll.VisualStudio.ReqnrollConnector.V1.csproj @@ -16,7 +16,7 @@ - + diff --git a/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/FakeTestContext.cs b/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/FakeTestContext.cs index fa048e7c..b79a5090 100644 --- a/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/FakeTestContext.cs +++ b/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/FakeTestContext.cs @@ -4,6 +4,7 @@ using System.Data.Common; using Microsoft.VisualStudio.TestTools.UnitTesting; +// ReSharper disable once CheckNamespace namespace SpecFlow.VisualStudio.SpecFlowConnector.Discovery; internal class FakeTestContext : TestContext @@ -19,32 +20,32 @@ public override void AddResultFile(string fileName) throw new NotImplementedException(); } - public override void BeginTimer(string timerName) - { - throw new NotImplementedException(); - } + //public override void BeginTimer(string timerName) + //{ + // throw new NotImplementedException(); + //} - public override void EndTimer(string timerName) - { - throw new NotImplementedException(); - } + //public override void EndTimer(string timerName) + //{ + // throw new NotImplementedException(); + //} - public override void Write(string message) + public override void Write(string? message) { throw new NotImplementedException(); } - public override void Write(string format, params object[] args) + public override void Write(string format, params object?[] args) { throw new NotImplementedException(); } - public override void WriteLine(string message) + public override void WriteLine(string? message) { throw new NotImplementedException(); } - public override void WriteLine(string format, params object[] args) + public override void WriteLine(string format, params object?[] args) { throw new NotImplementedException(); } diff --git a/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/SpecFlow.VisualStudio.SpecFlowConnector.V1.csproj b/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/SpecFlow.VisualStudio.SpecFlowConnector.V1.csproj index e293e44b..95097390 100644 --- a/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/SpecFlow.VisualStudio.SpecFlowConnector.V1.csproj +++ b/Connectors/SpecFlow.VisualStudio.SpecFlowConnector.V1/SpecFlow.VisualStudio.SpecFlowConnector.V1.csproj @@ -16,7 +16,7 @@ - +