Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLarsson committed May 16, 2020
1 parent 4c92839 commit 7c566cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ValidCode/Operators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void Valid()
Assert.AreEqual(1, typeof(Operators).GetMethod("op_Addition", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly, null, new[] { typeof(Operators), typeof(Operators) }, null).Invoke(null, new object?[] { null, null }));
Assert.AreEqual(true, typeof(Operators).GetMethod("op_Equality", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly, null, new[] { typeof(Operators), typeof(Operators) }, null).Invoke(null, new object?[] { null, null }));
Assert.AreEqual(true, typeof(Operators).GetMethod("op_Inequality", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly, null, new[] { typeof(Operators), typeof(Operators) }, null).Invoke(null, new object?[] { null, null }));
Assert.AreEqual(2, typeof(Operators).GetMethod("op_Explicit", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly, null, new[] { typeof(Operators) }, null).Invoke(null, new object?[] { (Operators)null }));
Assert.AreEqual(2, typeof(Operators).GetMethod("op_Explicit", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly, null, new[] { typeof(Operators) }, null).Invoke(null, new object?[] { (Operators?)null }));
Assert.Null(typeof(Operators).GetMethod("op_Explicit", BindingFlags.Public | BindingFlags.Static | BindingFlags.DeclaredOnly, null, new[] { typeof(int) }, null).Invoke(null, new object[] { 1 }));
}

Expand Down

0 comments on commit 7c566cb

Please sign in to comment.