コード例 #1
0
        private void TestStretchInNestedAspectRatios(AspectRatio inner, AspectRatio outer, bool shouldBeStretchedHorizontal, bool shouldBeStretchedVertical)
        {
            AspectRatio.IsStretchedAlong(inner, outer, Orientation.Horizontal)
            .Should().Be(shouldBeStretchedHorizontal);

            AspectRatio.IsStretchedAlong(inner, outer, Orientation.Vertical)
            .Should().Be(shouldBeStretchedVertical);
        }