Index: Src/GoogleApis.Tests/Apis/Testing/MoreAssertsTests.cs =================================================================== deleted file mode 100644 --- a/Src/GoogleApis.Tests/Apis/Testing/MoreAssertsTests.cs +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2010 Google Inc - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -using System.Collections.Generic; -using System.Linq; -using NUnit.Framework; -using Google.Apis.Testing; - -namespace Google.Apis.Tests.Apis.Testing -{ - /// - /// Tests the "MoreAsserts"-class - /// - [TestFixture] - public class MoreAssertsTests - { - /// - /// Tests that the Assert helper method works correctly (lets assert the asserts!) - /// - [Test] - public void TestCase() - { - var actual = new List { "a", "b", "c", "d" }; - MoreAsserts.ContentsEqualAndInOrder(actual.Select(x => x.ToString()), actual); - Assert.Throws( - () => MoreAsserts.ContentsEqualAndInOrder(actual.Select(x => x).Reverse(), actual)); - Assert.Throws( - () => MoreAsserts.ContentsEqualAndInOrder(new List { "a", "b", "c" }, actual)); - Assert.Throws( - () => MoreAsserts.ContentsEqualAndInOrder(new List { "b", "c", "d" }, actual)); - Assert.Throws( - () => MoreAsserts.ContentsEqualAndInOrder(new List { "a", "b", "c", "d", "e" }, actual)); - Assert.Throws( - () => MoreAsserts.ContentsEqualAndInOrder(new List { "a", "b", "c", "e" }, actual)); - Assert.Throws( - () => MoreAsserts.ContentsEqualAndInOrder(new List { "b", "b", "c", "d" }, actual)); - } - } -} \ No newline at end of file