public void TestCastToImplementedType() { var ints = new int[] { 42, 12 }; var strs = new string[] { "foo", "bar" }; var bingo = new Bingo(); AssertAreSame(ints, bingo.Cast <int>()); AssertAreSame(strs, bingo.Cast <string>()); }
public void TestCastToImplementedType() { var ints = new[] { 42, 12 }; var strs = new[] { "foo", "bar" }; var bingo = new Bingo(); // Note: we are testing Cast // ReSharper disable once RedundantEnumerableCastCall AssertAreSame(ints, bingo.Cast <int>()); // ReSharper disable once RedundantEnumerableCastCall AssertAreSame(strs, bingo.Cast <string>()); }