Esempio n. 1
0
        public void TestMergeCollectionMock()
        {
            var expectedCollection = new List <double> {
                1, 2, 3
            };

            Mock.Setup(() => CollectionsHelper.MergeCollections(new List <double>(), new List <double>()), () =>
            {
                var actualCollectionMergeResult = CollectionsHelper.MergeCollections(new List <double>(), new List <double>());
                Assert.IsTrue(actualCollectionMergeResult.SequenceEqual(expectedCollection));
            }).Returns(expectedCollection);
        }
Esempio n. 2
0
 public void MergeCollectionsNegativeTest(IList <double> firstCollection, IList <double> secondCollection)
 {
     Assert.Throws(Is.AssignableTo <Exception>(), () => CollectionsHelper.MergeCollections(firstCollection, secondCollection));
 }
Esempio n. 3
0
 public IList <double> MergeCollectionsPositiveTest(IList <double> firstCollection, IList <double> secondCollection)
 {
     return(CollectionsHelper.MergeCollections(firstCollection, secondCollection));
 }