public void TearDown() { library?.Dispose(); library = null; function?.Dispose(); function = null; encoder?.Dispose(); encoder = null; }