public void HasSerializableAttribute() { // Arrange var type = typeof(MemoryThrottleRepository.ThrottleCacheItem); // Act var result = type.IsDefined(typeof(SerializableAttribute), false); // Assert Assert.True(result); }