public void TestGeneratorAndDispose() { MapWrapper mapWrapper = new MapWrapper(new List <KeyValuePair <PrimitiveType, StackItem> >(), null); Assert.IsNotNull(mapWrapper); Action action = () => mapWrapper.Dispose(); action.Should().NotThrow <Exception>(); }