public void Should_Throw_If_Context_Is_Null()
            {
                // Given, When
                var result = Record.Exception(() => EnvironmentAliases.IsRunningOnMacOs(null));

                // Then
                AssertEx.IsArgumentNullException(result, "context");
            }
            public void Should_Return_Correct_Value(PlatformFamily family, bool expected)
            {
                // Given
                var context = Substitute.For <ICakeContext>();

                context.Environment.Returns(new FakeEnvironment(family));

                // When
                var result = EnvironmentAliases.IsRunningOnMacOs(context);

                // Then
                Assert.Equal(expected, result);
            }