public void SearchTest() { Core wolframAlpha = new Core(_appId); const string expectedPIApproximation = "3.1415926535897932384626433832795028841971693993751058..."; QueryResult actual = wolframAlpha.Query("PI"); Assert.IsNotNull(actual); //Get the interesting subpod string actualPIApproximation = QueryResultHelper.GetPrimaryPod(actual).SubPods.First().Plaintext; Assert.AreEqual(expectedPIApproximation, actualPIApproximation); }
public IReadOnlyDictionary <string, object?> ToDictionary() { return(QueryResultHelper.ToDictionary(this)); }