Given_an_array_When_an_ArrayValueObject_is_created_from_the_array_Then_the_value_object_can_enumerate_the_array () { var a = new[] { 1, 2, 3 }; var sut = new ArrayValueObject<int>(a); CollectionAssert.AreEqual(a, sut); }
Given_an_array_When_an_ArrayValueObject_is_created_from_the_array_Then_the_array_can_be_changed_without_changing_the_value_object () { var a = new[] {1, 2, 3}; var sut = new ArrayValueObject<int>(a); a[0] = 34; CollectionAssert.AreNotEqual(a, sut); }