public void ValueTypes() { var testValue = 1; var testState = new AssertionState <int>(() => testValue); var exPass = Record.Exception(() => _subject.Assert(testState, typeof(int))); var exFail = Record.Exception(() => _subject.Assert(testState, typeof(bool))); Assert.Null(exPass); Assert.NotNull(exFail); }