public async Task Int_TryRemoveStateAsyncTest() { var instance = new MockActorStateManager(); await instance.TryAddStateAsync("existing", 6); await instance.TryRemoveStateAsync("existing"); var result = await instance.TryGetStateAsync <int>("existing"); Assert.IsInstanceOfType(result, typeof(ConditionalValue <int>)); Assert.AreEqual(default(int), result.Value); Assert.IsFalse(result.HasValue); }