コード例 #1
0
 public void AUT_ObjectCreationException_Is_Instance_Present_Test()
 {
     // Assert
     _objectCreationExceptionInstanceType.ShouldNotBeNull();
     _objectCreationExceptionInstance.ShouldNotBeNull();
     _objectCreationExceptionInstanceFixture.ShouldNotBeNull();
     CurrentInstance.ShouldNotBeNull();
 }
コード例 #2
0
        public void AUT_ObjectCreationException_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            ObjectCreationException instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
        }