Here are the examples of the csharp api class NUnit.Framework.Assert.AreSame(object, object, string, params object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
5 Examples
0
1. Example
Project: 32feet
Source File: Assert.cs
Source File: Assert.cs
static public void AreSame(Object expected, Object actual, string message) { Assert.AreSame(expected, actual, message, null); }
0
2. Example
Project: 32feet
Source File: Assert.cs
Source File: Assert.cs
static public void AreSame(Object expected, Object actual) { Assert.AreSame(expected, actual, string.Empty, null); }
0
3. Example
Project: 32feet
Source File: Assert.cs
Source File: Assert.cs
static public void AreSame(Object expected, Object actual, string message) { Assert.AreSame(expected, actual, message, null); }
0
4. Example
Project: 32feet
Source File: Assert.cs
Source File: Assert.cs
static public void AreSame(Object expected, Object actual) { Assert.AreSame(expected, actual, string.Empty, null); }
0
5. Example
Project: keepassrpc
Source File: TestExportContext.cs
Source File: TestExportContext.cs
private static void AssertInStock(Type expected, Type type) { ExportContext context = new ExportContext(); IExporter exporter = context.FindExporter(type); Assert.IsNotNull(exporter, "No exporter found for {0}", type.FullName); Assert.AreSame(type, exporter.InputType, "{0} reported {1} when expecting {2}.", exporter, exporter.InputType, type); Assert.IsInstanceOfType(expected, exporter, type.FullName); }