diff --git a/src/TestFramework/TestFramework/Assertions/Assert.AreSame.cs b/src/TestFramework/TestFramework/Assertions/Assert.AreSame.cs
index 36d3562a7b..414763511f 100644
--- a/src/TestFramework/TestFramework/Assertions/Assert.AreSame.cs
+++ b/src/TestFramework/TestFramework/Assertions/Assert.AreSame.cs
@@ -17,6 +17,9 @@ public sealed partial class Assert
/// Tests whether the specified objects both refer to the same object and
/// throws an exception if the two inputs do not refer to the same object.
///
+ ///
+ /// The type of values to compare.
+ ///
///
/// The first object to compare. This is the value the test expects.
///
@@ -27,7 +30,7 @@ public sealed partial class Assert
/// Thrown if does not refer to the same object
/// as .
///
- public static void AreSame(object? expected, object? actual)
+ public static void AreSame(T? expected, T? actual)
{
AreSame(expected, actual, string.Empty, null);
}
@@ -36,6 +39,9 @@ public static void AreSame(object? expected, object? actual)
/// Tests whether the specified objects both refer to the same object and
/// throws an exception if the two inputs do not refer to the same object.
///
+ ///
+ /// The type of values to compare.
+ ///
///
/// The first object to compare. This is the value the test expects.
///
@@ -51,7 +57,7 @@ public static void AreSame(object? expected, object? actual)
/// Thrown if does not refer to the same object
/// as .
///
- public static void AreSame(object? expected, object? actual, string? message)
+ public static void AreSame(T? expected, T? actual, string? message)
{
AreSame(expected, actual, message, null);
}
@@ -60,6 +66,9 @@ public static void AreSame(object? expected, object? actual, string? message)
/// Tests whether the specified objects both refer to the same object and
/// throws an exception if the two inputs do not refer to the same object.
///
+ ///
+ /// The type of values to compare.
+ ///
///
/// The first object to compare. This is the value the test expects.
///
@@ -78,7 +87,7 @@ public static void AreSame(object? expected, object? actual, string? message)
/// Thrown if does not refer to the same object
/// as .
///
- public static void AreSame(object? expected, object? actual, string? message, params object?[]? parameters)
+ public static void AreSame(T? expected, T? actual, string? message, params object?[]? parameters)
{
if (ReferenceEquals(expected, actual))
{
@@ -106,6 +115,9 @@ public static void AreSame(object? expected, object? actual, string? message, pa
/// Tests whether the specified objects refer to different objects and
/// throws an exception if the two inputs refer to the same object.
///
+ ///
+ /// The type of values to compare.
+ ///
///
/// The first object to compare. This is the value the test expects not
/// to match .
@@ -117,7 +129,7 @@ public static void AreSame(object? expected, object? actual, string? message, pa
/// Thrown if refers to the same object
/// as .
///
- public static void AreNotSame(object? notExpected, object? actual)
+ public static void AreNotSame(T? notExpected, T? actual)
{
AreNotSame(notExpected, actual, string.Empty, null);
}
@@ -126,6 +138,9 @@ public static void AreNotSame(object? notExpected, object? actual)
/// Tests whether the specified objects refer to different objects and
/// throws an exception if the two inputs refer to the same object.
///
+ ///
+ /// The type of values to compare.
+ ///
///
/// The first object to compare. This is the value the test expects not
/// to match .
@@ -142,7 +157,7 @@ public static void AreNotSame(object? notExpected, object? actual)
/// Thrown if refers to the same object
/// as .
///
- public static void AreNotSame(object? notExpected, object? actual, string? message)
+ public static void AreNotSame(T? notExpected, T? actual, string? message)
{
AreNotSame(notExpected, actual, message, null);
}
@@ -151,6 +166,9 @@ public static void AreNotSame(object? notExpected, object? actual, string? messa
/// Tests whether the specified objects refer to different objects and
/// throws an exception if the two inputs refer to the same object.
///
+ ///
+ /// The type of values to compare.
+ ///
///
/// The first object to compare. This is the value the test expects not
/// to match .
@@ -170,7 +188,7 @@ public static void AreNotSame(object? notExpected, object? actual, string? messa
/// Thrown if refers to the same object
/// as .
///
- public static void AreNotSame(object? notExpected, object? actual, string? message, params object?[]? parameters)
+ public static void AreNotSame(T? notExpected, T? actual, string? message, params object?[]? parameters)
{
if (ReferenceEquals(notExpected, actual))
{
diff --git a/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Shipped.txt b/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Shipped.txt
index c5107f343f..0e52666103 100644
--- a/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Shipped.txt
+++ b/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Shipped.txt
@@ -276,12 +276,6 @@ static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotEqual(string? n
static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotEqual(T? notExpected, T? actual) -> void
static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotEqual(T? notExpected, T? actual, string? message) -> void
static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotEqual(T? notExpected, T? actual, string? message, params object?[]? parameters) -> void
-static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame(object? notExpected, object? actual) -> void
-static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame(object? notExpected, object? actual, string? message) -> void
-static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame(object? notExpected, object? actual, string? message, params object?[]? parameters) -> void
-static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(object? expected, object? actual) -> void
-static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(object? expected, object? actual, string? message) -> void
-static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(object? expected, object? actual, string? message, params object?[]? parameters) -> void
static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Equals(object? objA, object? objB) -> bool
static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail() -> void
static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.Fail(string? message) -> void
diff --git a/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Unshipped.txt b/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Unshipped.txt
index 3050b2ca79..52739f7a06 100644
--- a/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Unshipped.txt
+++ b/src/TestFramework/TestFramework/PublicAPI/PublicAPI.Unshipped.txt
@@ -1 +1,7 @@
-virtual Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.GetDisplayName(System.Reflection.MethodInfo! methodInfo, object?[]? data) -> string?
\ No newline at end of file
+virtual Microsoft.VisualStudio.TestTools.UnitTesting.DataRowAttribute.GetDisplayName(System.Reflection.MethodInfo! methodInfo, object?[]? data) -> string?
+static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(T? expected, T? actual) -> void
+static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(T? expected, T? actual, string? message) -> void
+static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreSame(T? expected, T? actual, string? message, params object?[]? parameters) -> void
+static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame(T? notExpected, T? actual) -> void
+static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame(T? notExpected, T? actual, string? message) -> void
+static Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreNotSame(T? notExpected, T? actual, string? message, params object?[]? parameters) -> void