Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 15 commits
  • 52 files changed
  • 0 commit comments
  • 2 contributors
Showing with 48,457 additions and 7,893 deletions.
  1. +34 −2 basictests/Program.fs
  2. +1 −1  basictests/app.config
  3. +2 −2 basictests/basictests.fsproj
  4. +2 −2 basictests/packages.config
  5. +3 −3 canopy.nuspec
  6. +107 −80 canopy/canopy.fs
  7. +3 −3 canopy/canopy.fsproj
  8. +3 −3 canopy/packages.config
  9. +14 −2 canopy/runner.fs
  10. +1 −1  githubtests/Program.fs
  11. +6 −7 githubtests/githubtests.fsproj
  12. BIN  packages/Newtonsoft.Json.4.0.6/Newtonsoft.Json.4.0.6.nupkg
  13. BIN  packages/Newtonsoft.Json.4.0.6/lib/net40/Newtonsoft.Json.dll
  14. BIN  packages/Newtonsoft.Json.4.0.6/lib/net40/Newtonsoft.Json.pdb
  15. BIN  packages/Newtonsoft.Json.4.5.1/Newtonsoft.Json.4.5.1.nupkg
  16. BIN  packages/Newtonsoft.Json.4.5.1/lib/net20/Newtonsoft.Json.dll
  17. +7,938 −0 packages/Newtonsoft.Json.4.5.1/lib/net20/Newtonsoft.Json.xml
  18. BIN  packages/Newtonsoft.Json.4.5.1/lib/net35/Newtonsoft.Json.dll
  19. +474 −366 packages/{Newtonsoft.Json.4.0.6/lib/net40 → Newtonsoft.Json.4.5.1/lib/net35}/Newtonsoft.Json.xml
  20. BIN  packages/Newtonsoft.Json.4.5.1/lib/net40/Newtonsoft.Json.dll
  21. +7,320 −0 packages/Newtonsoft.Json.4.5.1/lib/net40/Newtonsoft.Json.xml
  22. BIN  packages/Newtonsoft.Json.4.5.1/lib/sl3-wp/Newtonsoft.Json.dll
  23. +6,661 −0 packages/Newtonsoft.Json.4.5.1/lib/sl3-wp/Newtonsoft.Json.xml
  24. BIN  packages/Newtonsoft.Json.4.5.1/lib/sl4-windowsphone71/Newtonsoft.Json.dll
  25. +6,661 −0 packages/Newtonsoft.Json.4.5.1/lib/sl4-windowsphone71/Newtonsoft.Json.xml
  26. BIN  packages/Newtonsoft.Json.4.5.1/lib/sl4/Newtonsoft.Json.dll
  27. +6,691 −0 packages/Newtonsoft.Json.4.5.1/lib/sl4/Newtonsoft.Json.xml
  28. BIN  packages/Newtonsoft.Json.4.5.1/lib/winrt45/Newtonsoft.Json.dll
  29. +6,912 −0 packages/Newtonsoft.Json.4.5.1/lib/winrt45/Newtonsoft.Json.xml
  30. BIN  packages/Selenium.Support.2.19.0/Selenium.Support.2.19.0.nupkg
  31. BIN  packages/Selenium.Support.2.19.0/lib/net40/WebDriver.Support.dll
  32. BIN  packages/Selenium.Support.2.24.0/Selenium.Support.2.24.0.nupkg
  33. BIN  packages/Selenium.Support.2.24.0/lib/net35/WebDriver.Support.dll
  34. +304 −2 packages/{Selenium.Support.2.19.0/lib/net40 → Selenium.Support.2.24.0/lib/net35}/WebDriver.Support.xml
  35. BIN  packages/Selenium.Support.2.24.0/lib/net40/WebDriver.Support.dll
  36. +1,633 −0 packages/Selenium.Support.2.24.0/lib/net40/WebDriver.Support.xml
  37. BIN  packages/Selenium.WebDriver.2.19.0/Selenium.WebDriver.2.19.0.nupkg
  38. BIN  packages/Selenium.WebDriver.2.19.0/lib/net40/WebDriver.dll
  39. BIN  packages/Selenium.WebDriver.2.20.0/Selenium.WebDriver.2.20.0.nupkg
  40. BIN  packages/Selenium.WebDriver.2.20.0/lib/net35/WebDriver.dll
  41. +0 −6,957 packages/Selenium.WebDriver.2.20.0/lib/net35/WebDriver.xml
  42. BIN  packages/Selenium.WebDriver.2.20.0/lib/net40/WebDriver.dll
  43. BIN  packages/Selenium.WebDriver.2.24.0/Selenium.WebDriver.2.24.0.nupkg
  44. BIN  packages/Selenium.WebDriver.2.24.0/lib/net35/WebDriver.dll
  45. +1,792 −231 packages/{Selenium.WebDriver.2.19.0/lib/net40 → Selenium.WebDriver.2.24.0/lib/net35}/WebDriver.xml
  46. BIN  packages/Selenium.WebDriver.2.24.0/lib/net40/WebDriver.dll
  47. +1,792 −231 packages/{Selenium.WebDriver.2.20.0 → Selenium.WebDriver.2.24.0}/lib/net40/WebDriver.xml
  48. +16 −0 testpages/app.rb
  49. +22 −0 testpages/views/count.erb
  50. +23 −0 testpages/views/displayed.erb
  51. +19 −0 testpages/views/doubleClick.erb
  52. +23 −0 testpages/views/notDisplayed.erb
View
36 basictests/Program.fs
@@ -4,7 +4,7 @@ open runner
open canopy
open configuration
-before <- fun () -> System.Console.WriteLine("This happens before every test")
+//before <- fun () -> System.Console.WriteLine("This happens before every test")
suggestions := true
start firefox
@@ -18,7 +18,7 @@ test (fun _ ->
url testpage
"#welcome" == "Welcome")
-wip (fun _ ->
+test (fun _ ->
describe "#firstName should have John (using == infix operator)"
url testpage
"#firstName" == "John")
@@ -100,6 +100,13 @@ test (fun _ ->
"#button_clicked" == "button clicked")
test (fun _ ->
+ describe "clicking (element #button) sets #button_clicked to button clicked"
+ !^ testpage
+ "#button_clicked" == "button not clicked"
+ click (element "#button")
+ "#button_clicked" == "button clicked")
+
+test (fun _ ->
describe "clicking hyperlink sets #link_clicked to link clicked"
!^ testpage
"#link_clicked" == "link not clicked"
@@ -299,6 +306,31 @@ test (fun _ ->
"#item_list" << "Item 2"
"#item_list" == "Item 2")
+test (fun _ ->
+ describe "double clicking"
+ !^ "http://localhost:4567/doubleClick"
+ "#clicked" == "Not Clicked"
+ doubleClick "#double_click"
+ "#clicked" == "Clicked")
+
+test (fun _ ->
+ describe "displayed test"
+ !^ "http://localhost:4567/displayed"
+ displayed "#displayed"
+)
+
+test (fun _ ->
+ describe "notDisplayed test"
+ !^ "http://localhost:4567/notDisplayed"
+ notDisplayed "#notDisplayed"
+)
+
+test (fun _ ->
+ describe "count test"
+ !^ "http://localhost:4567/count"
+ count ".number" 5
+)
+
run ()
System.Console.ReadKey() |> ignore
View
2  basictests/app.config
@@ -4,7 +4,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="WebDriver" publicKeyToken="1c2bd1631853048f" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-2.20.0.0" newVersion="2.20.0.0" />
+ <bindingRedirect oldVersion="0.0.0.0-2.24.0.0" newVersion="2.24.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
View
4 basictests/basictests.fsproj
@@ -49,7 +49,7 @@
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core" />
<Reference Include="Newtonsoft.Json">
- <HintPath>..\packages\Newtonsoft.Json.4.0.6\lib\net40\Newtonsoft.Json.dll</HintPath>
+ <HintPath>..\packages\Newtonsoft.Json.4.5.1\lib\net40\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
@@ -62,7 +62,7 @@
<Private>True</Private>
</ProjectReference>
<Reference Include="WebDriver">
- <HintPath>..\packages\Selenium.WebDriver.2.20.0\lib\net40\WebDriver.dll</HintPath>
+ <HintPath>..\packages\Selenium.WebDriver.2.24.0\lib\net40\WebDriver.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
View
4 basictests/packages.config
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DotNetZip" version="1.9.1.8" />
- <package id="Newtonsoft.Json" version="4.0.6" />
- <package id="Selenium.WebDriver" version="2.20.0" />
+ <package id="Newtonsoft.Json" version="4.5.1" />
+ <package id="Selenium.WebDriver" version="2.24.0" />
</packages>
View
6 canopy.nuspec
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>canopy</id>
- <version>0.3.3</version>
+ <version>0.4.1</version>
<authors>Chris Holt</authors>
<owners>Chris Holt</owners>
<licenseUrl>https://github.com/lefthandedgoat/canopy/blob/master/license.txt</licenseUrl>
@@ -10,8 +10,8 @@
<description>A simple framework in f# on top of selenium for writing UI automation tests.</description>
<tags>f# canopy selenium ui automation tests</tags>
<dependencies>
- <dependency id="Selenium.WebDriver" version="2.20.0" />
- <dependency id="Selenium.Support" version="2.20.0" />
+ <dependency id="Selenium.WebDriver" version="2.24.0" />
+ <dependency id="Selenium.Support" version="2.24.0" />
</dependencies>
</metadata>
<files>
View
187 canopy/canopy.fs
@@ -25,7 +25,7 @@ let right = Keys.Right
let firefox = "firefox"
let ie = "ie"
let chrome = "chrome"
-
+
let start (b : string) =
//for chrome you need to download chromedriver.exe from http://code.google.com/p/chromedriver/wiki/GettingStarted
//place chromedriver.exe in c:\ or you can place it in a customer location and change chromeDir value above
@@ -49,6 +49,21 @@ let puts (text : string) =
try (browser :?> IJavaScriptExecutor).ExecuteScript(info) |> ignore with | ex -> ()
()
+let private wait timeout f =
+ let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(timeout))
+ try
+ wait.Until(fun _ -> (
+ try
+ (f ()) = true
+ with
+ | _ -> false
+ )
+ ) |> ignore
+ with
+ | :? TimeoutException as te -> raise (System.TimeoutException(te.Message))
+ | ex -> failwith ex.Message
+ ()
+
let private colorizeAndSleep (cssSelector : string) =
puts cssSelector
let js = System.String.Format("document.querySelector('{0}').style.backgroundColor = '#FFF467';", cssSelector)
@@ -81,21 +96,6 @@ let private find cssSelector timeout =
let private findMany cssSelector timeout =
Seq.toList (findByFunction cssSelector timeout browser.FindElements)
-
-let private keepTrying (f : 'a -> 'b) =
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(elementTimeout))
- try
- wait.Until(fun _ -> (
- try
- f () |> ignore
- true
- with
- | _ -> false
- )
- ) |> ignore
- with
- | ex -> failwith ex.Message
- ()
let currentUrl _ =
browser.Url
@@ -106,12 +106,11 @@ let logAction a =
()
let on (u: string) =
- logAction "on"
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(pageTimeout))
+ logAction "on"
try
- wait.Until(fun _ -> (browser.Url = u)) |> ignore
+ wait pageTimeout (fun _ -> (browser.Url = u))
with
- | :? Exception -> failwith (String.Format("on check failed, expected {0} got {1}", u, browser.Url));
+ | :? _ -> failwith (String.Format("on check failed, expected {0} got {1}", u, browser.Url));
()
let ( !^ ) (u : string) =
@@ -143,19 +142,22 @@ let ( << ) (cssSelector : string) (text : string) =
element.Clear()
element.SendKeys(text)
+let private textOf (element : IWebElement) =
+ if element.TagName = "input" then
+ element.GetAttribute("value")
+ else if element.TagName = "select" then
+ let value = element.GetAttribute("value")
+ let options = Seq.toList (element.FindElements(By.TagName("option")))
+ let option = options |> List.filter (fun e -> e.GetAttribute("value") = value)
+ option.Head.Text
+ else
+ element.Text
+
let read (cssSelector : string) =
try
logAction "read"
let element = find cssSelector elementTimeout
- if element.TagName = "input" then
- element.GetAttribute("value")
- else if element.TagName = "select" then
- let value = element.GetAttribute("value")
- let options = Seq.toList (element.FindElements(By.TagName("option")))
- let option = options |> List.filter (fun e -> e.GetAttribute("value") = value)
- option.Head.Text
- else
- element.Text
+ textOf element
with
| ex -> failwith ex.Message
@@ -168,17 +170,33 @@ let clear (cssSelector : string) =
failwith (String.Format("element {0} is marked as read only, you can not clear read only elements", cssSelector))
element.Clear()
-let click (cssSelector : string) =
+let click item =
try
logAction "click"
- let element = find cssSelector elementTimeout
- keepTrying (fun _ ->
- let element = find cssSelector elementTimeout
- element.Click()
- )
+ match box item with
+ | :? IWebElement as element -> element.Click()
+ | :? string as cssSelector ->
+ wait elementTimeout (fun _ -> let element = find cssSelector elementTimeout
+ element.Click()
+ true)
with
| ex -> failwith ex.Message
+let doubleClick item =
+ try
+ let js = "var evt = document.createEvent('MouseEvents'); evt.initMouseEvent('dblclick',true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0,null); arguments[0].dispatchEvent(evt);"
+
+ logAction "doubleClick"
+ match box item with
+ | :? IWebElement as element -> (browser :?> IJavaScriptExecutor).ExecuteScript(js, element) |> ignore
+ | :? string as cssSelector ->
+ wait elementTimeout (fun _ -> ( let element = find cssSelector elementTimeout
+ (browser :?> IJavaScriptExecutor).ExecuteScript(js, element) |> ignore
+ true))
+ with
+ | ex -> failwith ex.Message
+
+
let selected (cssSelector : string) =
logAction "selected"
let element = find cssSelector elementTimeout
@@ -208,55 +226,44 @@ let ( == ) (item : 'a) value =
alert.Dismiss()
failwith (String.Format("equality check failed. expected: {0}, got: {1}", value, text));
| :? string as cssSelector ->
- logAction "equals"
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(compareTimeout))
+ logAction "equals"
let bestvalue = ref ""
try
- wait.Until(fun _ -> (
- let readvalue = (read cssSelector)
- if readvalue <> value && readvalue <> "" then
- bestvalue := readvalue
- false
- else
- readvalue = value
- )) |> ignore
- ()
+ wait compareTimeout (fun _ -> ( let readvalue = (read cssSelector)
+ if readvalue <> value && readvalue <> "" then
+ bestvalue := readvalue
+ false
+ else
+ readvalue = value))
with
| :? TimeoutException -> failwith (String.Format("equality check failed. expected: {0}, got: {1}", value, !bestvalue));
| ex -> failwith ex.Message
let ( != ) cssSelector value =
logAction "notequals"
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(compareTimeout))
try
- wait.Until(fun _ -> (read cssSelector) <> value) |> ignore
+ wait compareTimeout (fun _ -> (read cssSelector) <> value)
with
| :? TimeoutException -> failwith (String.Format("not equals check failed. expected NOT: {0}, got: {1}", value, (read cssSelector)));
| ex -> failwith ex.Message
-
-
+
let ( *= ) (cssSelector : string) value =
logAction "listed"
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(compareTimeout))
try
- wait.Until(fun _ -> (
- let elements = findMany cssSelector elementTimeout
- elements |> Seq.exists(fun element -> element.Text = value)
- )
- ) |> ignore
+ wait compareTimeout (fun _ -> ( let elements = findMany cssSelector elementTimeout
+ elements |> Seq.exists(fun element -> (textOf element) = value)))
with
- | :? TimeoutException -> failwith (String.Format("cant find {0} in list {1}", value, cssSelector));
+ | :? TimeoutException -> let sb = new System.Text.StringBuilder()
+ let elements = findMany cssSelector elementTimeout
+ elements |> List.map (fun e -> sb.Append(String.Format("{0}\r\n", (textOf e)))) |> ignore
+ failwith (String.Format("cant find {0} in list {1}\r\ngot: {2}", value, cssSelector, sb.ToString()));
| ex -> failwith ex.Message
let ( *!= ) (cssSelector : string) value =
logAction "notlisted"
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(compareTimeout))
try
- wait.Until(fun _ -> (
- let elements = findMany cssSelector elementTimeout
- elements |> Seq.exists(fun element -> element.Text = value) = false
- )
- ) |> ignore
+ wait compareTimeout (fun _ -> ( let elements = findMany cssSelector elementTimeout
+ elements |> Seq.exists(fun element -> (textOf element) = value) = false))
with
| :? TimeoutException -> failwith (String.Format("found {0} in list {1}, expected not to", value, cssSelector));
| ex -> failwith ex.Message
@@ -267,6 +274,15 @@ let contains (value1 : string) (value2 : string) =
failwith (String.Format("contains check failed. {0} does not contain {1}", value2, value1));
()
+let count cssSelector count =
+ logAction "count"
+ try
+ wait compareTimeout (fun _ -> ( let elements = findMany cssSelector elementTimeout
+ elements.Length = count))
+ with
+ | :? TimeoutException -> failwith (String.Format("count failed. expected: {0} got: {1} ", count, (findMany cssSelector elementTimeout).Length));
+ | ex -> failwith ex.Message
+
let describe (text : string) =
puts text
()
@@ -292,9 +308,8 @@ let dismissAlert _ =
browser.SwitchTo().Alert().Dismiss()
let waitFor (f : unit -> bool) =
- try
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(compareTimeout))
- wait.Until(fun _ -> (f ())) |> ignore
+ try
+ wait compareTimeout (fun _ -> (f ()))
with
| :? System.TimeoutException -> puts("Condition not met in given amount of time. If you want to increase the time, put compareTimeout <- 10.0 anywhere before a test to increase the timeout")
failwith (String.Format("waitFor condition failed to become true in {0} seconds", compareTimeout))
@@ -306,13 +321,6 @@ let element cssSelector =
let elements cssSelector =
findMany cssSelector elementTimeout
-let fadedIn cssSelector =
- let shown cssSelector () =
- let opacity = (element cssSelector).GetCssValue("opacity")
- let display = (element cssSelector).GetCssValue("display")
- display <> "none" && opacity = "1"
- shown cssSelector
-
let exists cssSelector =
find cssSelector elementTimeout
@@ -330,19 +338,15 @@ let private regexMatch pattern input =
let elementsWithText cssSelector regex =
findMany cssSelector elementTimeout
- |> List.filter (fun element -> regexMatch regex element.Text)
+ |> List.filter (fun element -> regexMatch regex (textOf element))
let elementWithText cssSelector regex =
(elementsWithText cssSelector regex).Head
let ( =~ ) cssSelector pattern =
- logAction "regex equals"
- let wait = new WebDriverWait(browser, TimeSpan.FromSeconds(compareTimeout))
+ logAction "regex equals"
try
- wait.Until(fun _ -> (
- regexMatch pattern (read cssSelector)
- )) |> ignore
- ()
+ wait compareTimeout (fun _ -> regexMatch pattern (read cssSelector))
with
| :? TimeoutException -> failwith (String.Format("regex equality check failed. expected: {0}, got: {1}", pattern, (read cssSelector)));
| ex -> failwith ex.Message
@@ -355,7 +359,30 @@ let first cssSelector =
let last cssSelector =
(List.rev (elements cssSelector)).Head
+
+let private shown cssSelector =
+ let element = element cssSelector
+ let opacity = element.GetCssValue("opacity")
+ let display = element.GetCssValue("display")
+ display <> "none" && opacity = "1"
+let displayed cssSelector =
+ try
+ wait compareTimeout (fun _ -> shown cssSelector = true)
+ with
+ | :? TimeoutException -> failwith (String.Format("display checked for {0} failed.", cssSelector));
+ | ex -> failwith ex.Message
+
+let notDisplayed cssSelector =
+ try
+ wait compareTimeout (fun _ -> shown cssSelector = false)
+ ()
+ with
+ | :? TimeoutException -> failwith (String.Format("notDisplay checked for {0} failed.", cssSelector));
+ | ex -> failwith ex.Message
+
+let fadedIn cssSelector =
+ (fun _ -> shown cssSelector)
//really need to refactor so there are results for every action
//function for the action, true message, false message, something like that
View
6 canopy/canopy.fsproj
@@ -51,7 +51,7 @@
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core" />
<Reference Include="Newtonsoft.Json">
- <HintPath>..\packages\Newtonsoft.Json.4.0.6\lib\net40\Newtonsoft.Json.dll</HintPath>
+ <HintPath>..\packages\Newtonsoft.Json.4.5.1\lib\net40\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
@@ -59,11 +59,11 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Numerics" />
<Reference Include="WebDriver">
- <HintPath>..\packages\Selenium.WebDriver.2.19.0\lib\net40\WebDriver.dll</HintPath>
+ <HintPath>..\packages\Selenium.WebDriver.2.24.0\lib\net40\WebDriver.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="WebDriver.Support">
- <HintPath>..\packages\Selenium.Support.2.19.0\lib\net40\WebDriver.Support.dll</HintPath>
+ <HintPath>..\packages\Selenium.Support.2.24.0\lib\net40\WebDriver.Support.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
View
6 canopy/packages.config
@@ -2,7 +2,7 @@
<packages>
<package id="Castle.Core" version="3.0.0.4001" />
<package id="DotNetZip" version="1.9.1.8" />
- <package id="Newtonsoft.Json" version="4.0.6" />
- <package id="Selenium.Support" version="2.19.0" />
- <package id="Selenium.WebDriver" version="2.19.0" />
+ <package id="Newtonsoft.Json" version="4.5.1" />
+ <package id="Selenium.Support" version="2.24.0" />
+ <package id="Selenium.WebDriver" version="2.24.0" />
</packages>
View
16 canopy/runner.fs
@@ -41,17 +41,24 @@ let run _ =
try
(before ())
(f ())
+ System.Console.ForegroundColor <- System.ConsoleColor.Green
System.Console.WriteLine("Passed");
+ System.Console.ResetColor()
passedCount <- passedCount + 1
with
| ex when failureMessage <> null && failureMessage = ex.Message ->
+ System.Console.ForegroundColor <- System.ConsoleColor.Green
System.Console.WriteLine("Passed");
+ System.Console.ResetColor()
passedCount <- passedCount + 1
| ex ->
if failFast = ref true then
failed := true
System.Console.WriteLine("failFast was set to true and an error occured; testing stopped");
- System.Console.WriteLine("Error: {0}", ex.Message);
+ System.Console.ForegroundColor <- System.ConsoleColor.Red
+ System.Console.WriteLine("Error: ");
+ System.Console.ResetColor()
+ System.Console.WriteLine(ex.Message);
failedCount <- failedCount + 1
if suggestions = ref true then
@@ -83,7 +90,12 @@ let run _ =
stopWatch.Stop()
System.Console.WriteLine()
System.Console.WriteLine("{0} seconds to execute", stopWatch.Elapsed.Seconds)
+ if failedCount = 0 then
+ System.Console.ForegroundColor <- System.ConsoleColor.Green
System.Console.WriteLine("{0} passed", passedCount)
+ System.Console.ResetColor()
+ if failedCount > 0 then
+ System.Console.ForegroundColor <- System.ConsoleColor.Red
System.Console.WriteLine("{0} failed", failedCount)
-
+ System.Console.ResetColor()
()
View
2  githubtests/Program.fs
@@ -10,7 +10,7 @@ start "firefox"
let github = "https://www.github.com"
-test (fun _ ->
+wip (fun _ ->
describe "go to github and login"
url github
click "a[href='https://github.com/login']"
View
13 githubtests/githubtests.fsproj
@@ -34,25 +34,24 @@
<PlatformTarget>x86</PlatformTarget>
<DocumentationFile>bin\Release\githubtests.XML</DocumentationFile>
</PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
+ <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
+ <ItemGroup>
+ <Compile Include="Program.fs" />
+ <None Include="app.config" />
+ </ItemGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Program.fs" />
- </ItemGroup>
- <ItemGroup>
<ProjectReference Include="..\canopy\canopy.fsproj">
<Name>canopy</Name>
<Project>{63135cf6-70a9-4382-851d-4b679ee0cbf8}</Project>
<Private>True</Private>
</ProjectReference>
</ItemGroup>
- <Import Project="$(MSBuildExtensionsPath32)\FSharp\1.0\Microsoft.FSharp.Targets" Condition="!Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
- <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
View
BIN  packages/Newtonsoft.Json.4.0.6/Newtonsoft.Json.4.0.6.nupkg
Binary file not shown
View
BIN  packages/Newtonsoft.Json.4.0.6/lib/net40/Newtonsoft.Json.dll
Binary file not shown
View
BIN  packages/Newtonsoft.Json.4.0.6/lib/net40/Newtonsoft.Json.pdb
Binary file not shown
View
BIN  packages/Newtonsoft.Json.4.5.1/Newtonsoft.Json.4.5.1.nupkg
Binary file not shown
View
BIN  packages/Newtonsoft.Json.4.5.1/lib/net20/Newtonsoft.Json.dll
Binary file not shown
View
7,938 packages/Newtonsoft.Json.4.5.1/lib/net20/Newtonsoft.Json.xml
7,938 additions, 0 deletions not shown
View
BIN  packages/Newtonsoft.Json.4.5.1/lib/net35/Newtonsoft.Json.dll
Binary file not shown
View
840 ....Json.4.0.6/lib/net40/Newtonsoft.Json.xml → ....Json.4.5.1/lib/net35/Newtonsoft.Json.xml
@@ -29,25 +29,37 @@
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.JsonReader.ReadAsString">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.String"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonReader.ReadAsBytes">
<summary>
Reads the next JSON token from the stream as a <see cref="T:Byte[]"/>.
</summary>
- <returns>A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null.</returns>
+ <returns>A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonReader.ReadAsDecimal">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.JsonReader.ReadAsDateTime">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonReader.ReadAsDateTimeOffset">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonReader.Skip">
<summary>
@@ -109,19 +121,24 @@
Gets the quotation mark character used to enclose the value of a string.
</summary>
</member>
+ <member name="P:Newtonsoft.Json.JsonReader.DateTimeZoneHandling">
+ <summary>
+ Get or set how <see cref="T:System.DateTime"/> time zones are handling when reading JSON.
+ </summary>
+ </member>
<member name="P:Newtonsoft.Json.JsonReader.TokenType">
<summary>
- Gets the type of the current Json token.
+ Gets the type of the current JSON token.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonReader.Value">
<summary>
- Gets the text value of the current Json token.
+ Gets the text value of the current JSON token.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonReader.ValueType">
<summary>
- Gets The Common Language Runtime (CLR) type for the current Json token.
+ Gets The Common Language Runtime (CLR) type for the current JSON token.
</summary>
</member>
<member name="P:Newtonsoft.Json.JsonReader.Depth">
@@ -130,6 +147,16 @@
</summary>
<value>The depth of the current token in the JSON document.</value>
</member>
+ <member name="P:Newtonsoft.Json.JsonReader.Path">
+ <summary>
+ Gets the path of the current JSON token.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonReader.Culture">
+ <summary>
+ Gets or sets the culture used when reading JSON. Defaults to <see cref="P:System.Globalization.CultureInfo.InvariantCulture"/>.
+ </summary>
+ </member>
<member name="T:Newtonsoft.Json.JsonReader.State">
<summary>
Specifies the state of the reader.
@@ -233,27 +260,39 @@
Reads the next JSON token from the stream as a <see cref="T:Byte[]"/>.
</summary>
<returns>
- A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null.
+ A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.
</returns>
</member>
<member name="M:Newtonsoft.Json.Bson.BsonReader.ReadAsDecimal">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.Bson.BsonReader.ReadAsInt32">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.Bson.BsonReader.ReadAsString">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.String"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.Bson.BsonReader.ReadAsDateTime">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.Bson.BsonReader.ReadAsDateTimeOffset">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
<returns>
- A <see cref="T:System.Nullable`1"/>.
+ A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.
</returns>
</member>
<member name="M:Newtonsoft.Json.Bson.BsonReader.Read">
@@ -669,9 +708,24 @@
Gets the state of the writer.
</summary>
</member>
+ <member name="P:Newtonsoft.Json.JsonWriter.Path">
+ <summary>
+ Gets the path of the writer.
+ </summary>
+ </member>
<member name="P:Newtonsoft.Json.JsonWriter.Formatting">
<summary>
- Indicates how the output is formatted.
+ Indicates how JSON text output is formatted.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonWriter.DateFormatHandling">
+ <summary>
+ Get or set how dates are written to JSON text.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonWriter.DateTimeZoneHandling">
+ <summary>
+ Get or set how <see cref="T:System.DateTime"/> time zones are handling when writing JSON.
</summary>
</member>
<member name="M:Newtonsoft.Json.Bson.BsonWriter.#ctor(System.IO.Stream)">
@@ -1149,46 +1203,6 @@
<c>true</c> if this instance can convert the specified object type; otherwise, <c>false</c>.
</returns>
</member>
- <member name="T:Newtonsoft.Json.Converters.ExpandoObjectConverter">
- <summary>
- Converts an ExpandoObject to and from JSON.
- </summary>
- </member>
- <member name="M:Newtonsoft.Json.Converters.ExpandoObjectConverter.WriteJson(Newtonsoft.Json.JsonWriter,System.Object,Newtonsoft.Json.JsonSerializer)">
- <summary>
- Writes the JSON representation of the object.
- </summary>
- <param name="writer">The <see cref="T:Newtonsoft.Json.JsonWriter"/> to write to.</param>
- <param name="value">The value.</param>
- <param name="serializer">The calling serializer.</param>
- </member>
- <member name="M:Newtonsoft.Json.Converters.ExpandoObjectConverter.ReadJson(Newtonsoft.Json.JsonReader,System.Type,System.Object,Newtonsoft.Json.JsonSerializer)">
- <summary>
- Reads the JSON representation of the object.
- </summary>
- <param name="reader">The <see cref="T:Newtonsoft.Json.JsonReader"/> to read from.</param>
- <param name="objectType">Type of the object.</param>
- <param name="existingValue">The existing value of object being read.</param>
- <param name="serializer">The calling serializer.</param>
- <returns>The object value.</returns>
- </member>
- <member name="M:Newtonsoft.Json.Converters.ExpandoObjectConverter.CanConvert(System.Type)">
- <summary>
- Determines whether this instance can convert the specified object type.
- </summary>
- <param name="objectType">Type of the object.</param>
- <returns>
- <c>true</c> if this instance can convert the specified object type; otherwise, <c>false</c>.
- </returns>
- </member>
- <member name="P:Newtonsoft.Json.Converters.ExpandoObjectConverter.CanWrite">
- <summary>
- Gets a value indicating whether this <see cref="T:Newtonsoft.Json.JsonConverter"/> can write JSON.
- </summary>
- <value>
- <c>true</c> if this <see cref="T:Newtonsoft.Json.JsonConverter"/> can write JSON; otherwise, <c>false</c>.
- </value>
- </member>
<member name="T:Newtonsoft.Json.Converters.KeyValuePairConverter">
<summary>
Converts a <see cref="T:System.Collections.Generic.KeyValuePair`2"/> to and from JSON.
@@ -1340,18 +1354,196 @@
</member>
<member name="F:Newtonsoft.Json.ConstructorHandling.Default">
<summary>
- First attempt to use the public default constructor then fall back to single paramatized constructor.
+ First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
</summary>
</member>
<member name="F:Newtonsoft.Json.ConstructorHandling.AllowNonPublicDefaultConstructor">
<summary>
- Allow Json.NET to use a non-public default constructor.
+ Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
+ </summary>
+ </member>
+ <member name="T:Newtonsoft.Json.Converters.VersionConverter">
+ <summary>
+ Converts a <see cref="T:System.Version"/> to and from a string (e.g. "1.2.3.4").
+ </summary>
+ </member>
+ <member name="M:Newtonsoft.Json.Converters.VersionConverter.WriteJson(Newtonsoft.Json.JsonWriter,System.Object,Newtonsoft.Json.JsonSerializer)">
+ <summary>
+ Writes the JSON representation of the object.
+ </summary>
+ <param name="writer">The <see cref="T:Newtonsoft.Json.JsonWriter"/> to write to.</param>
+ <param name="value">The value.</param>
+ <param name="serializer">The calling serializer.</param>
+ </member>
+ <member name="M:Newtonsoft.Json.Converters.VersionConverter.ReadJson(Newtonsoft.Json.JsonReader,System.Type,System.Object,Newtonsoft.Json.JsonSerializer)">
+ <summary>
+ Reads the JSON representation of the object.
+ </summary>
+ <param name="reader">The <see cref="T:Newtonsoft.Json.JsonReader"/> to read from.</param>
+ <param name="objectType">Type of the object.</param>
+ <param name="existingValue">The existing property value of the JSON that is being converted.</param>
+ <param name="serializer">The calling serializer.</param>
+ <returns>The object value.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.Converters.VersionConverter.CanConvert(System.Type)">
+ <summary>
+ Determines whether this instance can convert the specified object type.
+ </summary>
+ <param name="objectType">Type of the object.</param>
+ <returns>
+ <c>true</c> if this instance can convert the specified object type; otherwise, <c>false</c>.
+ </returns>
+ </member>
+ <member name="T:Newtonsoft.Json.DateFormatHandling">
+ <summary>
+ Specifies how dates are formatted when writing JSON text.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.DateFormatHandling.IsoDateFormat">
+ <summary>
+ Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.DateFormatHandling.MicrosoftDateFormat">
+ <summary>
+ Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
+ </summary>
+ </member>
+ <member name="T:Newtonsoft.Json.DateTimeZoneHandling">
+ <summary>
+ Specifies how to treat the time value when converting between string and <see cref="T:System.DateTime"/>.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.DateTimeZoneHandling.Local">
+ <summary>
+ Treat as local time. If the <see cref="T:System.DateTime"/> object represents a Coordinated Universal Time (UTC), it is converted to the local time.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.DateTimeZoneHandling.Utc">
+ <summary>
+ Treat as a UTC. If the <see cref="T:System.DateTime"/> object represents a local time, it is converted to a UTC.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.DateTimeZoneHandling.Unspecified">
+ <summary>
+ Treat as a local time if a <see cref="T:System.DateTime"/> is being converted to a string.
+ If a string is being converted to <see cref="T:System.DateTime"/>, convert to a local time if a time zone is specified.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.DateTimeZoneHandling.RoundtripKind">
+ <summary>
+ Time zone information should be preserved when converting.
+ </summary>
+ </member>
+ <member name="T:Newtonsoft.Json.Formatting">
+ <summary>
+ Specifies formatting options for the <see cref="T:Newtonsoft.Json.JsonTextWriter"/>.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.Formatting.None">
+ <summary>
+ No special formatting is applied. This is the default.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.Formatting.Indented">
+ <summary>
+ Causes child objects to be indented according to the <see cref="P:Newtonsoft.Json.JsonTextWriter.Indentation"/> and <see cref="P:Newtonsoft.Json.JsonTextWriter.IndentChar"/> settings.
</summary>
</member>
<member name="T:Newtonsoft.Json.JsonConstructorAttribute">
<summary>
- Instructs the <see cref="T:Newtonsoft.Json.JsonSerializer"/> not to serialize the public field or public read/write property value.
+ Instructs the <see cref="T:Newtonsoft.Json.JsonSerializer"/> to use the specified constructor when deserializing that object.
+ </summary>
+ </member>
+ <member name="T:Newtonsoft.Json.Linq.JPropertyDescriptor">
+ <summary>
+ Represents a view of a <see cref="T:Newtonsoft.Json.Linq.JProperty"/>.
+ </summary>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.#ctor(System.String,System.Type)">
+ <summary>
+ Initializes a new instance of the <see cref="T:Newtonsoft.Json.Linq.JPropertyDescriptor"/> class.
+ </summary>
+ <param name="name">The name.</param>
+ <param name="propertyType">Type of the property.</param>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.CanResetValue(System.Object)">
+ <summary>
+ When overridden in a derived class, returns whether resetting an object changes its value.
+ </summary>
+ <returns>
+ true if resetting the component changes its value; otherwise, false.
+ </returns>
+ <param name="component">The component to test for reset capability.
+ </param>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.GetValue(System.Object)">
+ <summary>
+ When overridden in a derived class, gets the current value of the property on a component.
</summary>
+ <returns>
+ The value of a property for a given component.
+ </returns>
+ <param name="component">The component with the property for which to retrieve the value.
+ </param>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.ResetValue(System.Object)">
+ <summary>
+ When overridden in a derived class, resets the value for this property of the component to the default value.
+ </summary>
+ <param name="component">The component with the property value that is to be reset to the default value.
+ </param>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.SetValue(System.Object,System.Object)">
+ <summary>
+ When overridden in a derived class, sets the value of the component to a different value.
+ </summary>
+ <param name="component">The component with the property value that is to be set.
+ </param><param name="value">The new value.
+ </param>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.ShouldSerializeValue(System.Object)">
+ <summary>
+ When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
+ </summary>
+ <returns>
+ true if the property should be persisted; otherwise, false.
+ </returns>
+ <param name="component">The component with the property to be examined for persistence.
+ </param>
+ </member>
+ <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.ComponentType">
+ <summary>
+ When overridden in a derived class, gets the type of the component this property is bound to.
+ </summary>
+ <returns>
+ A <see cref="T:System.Type"/> that represents the type of component this property is bound to. When the <see cref="M:System.ComponentModel.PropertyDescriptor.GetValue(System.Object)"/> or <see cref="M:System.ComponentModel.PropertyDescriptor.SetValue(System.Object,System.Object)"/> methods are invoked, the object specified might be an instance of this type.
+ </returns>
+ </member>
+ <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.IsReadOnly">
+ <summary>
+ When overridden in a derived class, gets a value indicating whether this property is read-only.
+ </summary>
+ <returns>
+ true if the property is read-only; otherwise, false.
+ </returns>
+ </member>
+ <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.PropertyType">
+ <summary>
+ When overridden in a derived class, gets the type of the property.
+ </summary>
+ <returns>
+ A <see cref="T:System.Type"/> that represents the type of the property.
+ </returns>
+ </member>
+ <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.NameHashCode">
+ <summary>
+ Gets the hash code for the name of the member.
+ </summary>
+ <value></value>
+ <returns>
+ The hash code for the name of the member.
+ </returns>
</member>
<member name="T:Newtonsoft.Json.Linq.JRaw">
<summary>
@@ -1957,24 +2149,6 @@
<param name="errorWhenNoMatch">A flag to indicate whether an error should be thrown if no token is found.</param>
<returns>The <see cref="T:Newtonsoft.Json.Linq.JToken"/> that matches the object path.</returns>
</member>
- <member name="M:Newtonsoft.Json.Linq.JToken.GetMetaObject(System.Linq.Expressions.Expression)">
- <summary>
- Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
- </summary>
- <param name="parameter">The expression tree representation of the runtime value.</param>
- <returns>
- The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
- </returns>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JToken.System#Dynamic#IDynamicMetaObjectProvider#GetMetaObject(System.Linq.Expressions.Expression)">
- <summary>
- Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
- </summary>
- <param name="parameter">The expression tree representation of the runtime value.</param>
- <returns>
- The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
- </returns>
- </member>
<member name="M:Newtonsoft.Json.Linq.JToken.DeepClone">
<summary>
Creates a new instance of the <see cref="T:Newtonsoft.Json.Linq.JToken"/>. All child tokens are recursively cloned.
@@ -2195,15 +2369,6 @@
A <see cref="T:System.String"/> that represents this instance.
</returns>
</member>
- <member name="M:Newtonsoft.Json.Linq.JValue.GetMetaObject(System.Linq.Expressions.Expression)">
- <summary>
- Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
- </summary>
- <param name="parameter">The expression tree representation of the runtime value.</param>
- <returns>
- The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
- </returns>
- </member>
<member name="M:Newtonsoft.Json.Linq.JValue.CompareTo(Newtonsoft.Json.Linq.JValue)">
<summary>
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
@@ -2283,7 +2448,7 @@
The property must be defined in JSON and cannot be a null value.
</summary>
</member>
- <member name="T:Newtonsoft.Json.Serialization.JsonDynamicContract">
+ <member name="T:Newtonsoft.Json.Serialization.JsonISerializableContract">
<summary>
Contract details for a <see cref="T:System.Type"/> used by the <see cref="T:Newtonsoft.Json.JsonSerializer"/>.
</summary>
@@ -2349,7 +2514,7 @@
</member>
<member name="P:Newtonsoft.Json.Serialization.JsonContract.DefaultCreatorNonPublic">
<summary>
- Gets or sets a value indicating whether [default creator non public].
+ Gets or sets a value indicating whether the default creator is non public.
</summary>
<value><c>true</c> if the default object creator is non-public; otherwise, <c>false</c>.</value>
</member>
@@ -2359,29 +2524,6 @@
</summary>
<value>The method called when an error is thrown during the serialization of the object.</value>
</member>
- <member name="M:Newtonsoft.Json.Serialization.JsonDynamicContract.#ctor(System.Type)">
- <summary>
- Initializes a new instance of the <see cref="T:Newtonsoft.Json.Serialization.JsonDynamicContract"/> class.
- </summary>
- <param name="underlyingType">The underlying type for the contract.</param>
- </member>
- <member name="P:Newtonsoft.Json.Serialization.JsonDynamicContract.Properties">
- <summary>
- Gets the object's properties.
- </summary>
- <value>The object's properties.</value>
- </member>
- <member name="P:Newtonsoft.Json.Serialization.JsonDynamicContract.PropertyNameResolver">
- <summary>
- Gets or sets the property name resolver.
- </summary>
- <value>The property name resolver.</value>
- </member>
- <member name="T:Newtonsoft.Json.Serialization.JsonISerializableContract">
- <summary>
- Contract details for a <see cref="T:System.Type"/> used by the <see cref="T:Newtonsoft.Json.JsonSerializer"/>.
- </summary>
- </member>
<member name="M:Newtonsoft.Json.Serialization.JsonISerializableContract.#ctor(System.Type)">
<summary>
Initializes a new instance of the <see cref="T:Newtonsoft.Json.Serialization.JsonISerializableContract"/> class.
@@ -2484,96 +2626,6 @@
</summary>
<value>The error context.</value>
</member>
- <member name="T:Newtonsoft.Json.Linq.JPropertyDescriptor">
- <summary>
- Represents a view of a <see cref="T:Newtonsoft.Json.Linq.JProperty"/>.
- </summary>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.#ctor(System.String,System.Type)">
- <summary>
- Initializes a new instance of the <see cref="T:Newtonsoft.Json.Linq.JPropertyDescriptor"/> class.
- </summary>
- <param name="name">The name.</param>
- <param name="propertyType">Type of the property.</param>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.CanResetValue(System.Object)">
- <summary>
- When overridden in a derived class, returns whether resetting an object changes its value.
- </summary>
- <returns>
- true if resetting the component changes its value; otherwise, false.
- </returns>
- <param name="component">The component to test for reset capability.
- </param>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.GetValue(System.Object)">
- <summary>
- When overridden in a derived class, gets the current value of the property on a component.
- </summary>
- <returns>
- The value of a property for a given component.
- </returns>
- <param name="component">The component with the property for which to retrieve the value.
- </param>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.ResetValue(System.Object)">
- <summary>
- When overridden in a derived class, resets the value for this property of the component to the default value.
- </summary>
- <param name="component">The component with the property value that is to be reset to the default value.
- </param>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.SetValue(System.Object,System.Object)">
- <summary>
- When overridden in a derived class, sets the value of the component to a different value.
- </summary>
- <param name="component">The component with the property value that is to be set.
- </param><param name="value">The new value.
- </param>
- </member>
- <member name="M:Newtonsoft.Json.Linq.JPropertyDescriptor.ShouldSerializeValue(System.Object)">
- <summary>
- When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
- </summary>
- <returns>
- true if the property should be persisted; otherwise, false.
- </returns>
- <param name="component">The component with the property to be examined for persistence.
- </param>
- </member>
- <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.ComponentType">
- <summary>
- When overridden in a derived class, gets the type of the component this property is bound to.
- </summary>
- <returns>
- A <see cref="T:System.Type"/> that represents the type of component this property is bound to. When the <see cref="M:System.ComponentModel.PropertyDescriptor.GetValue(System.Object)"/> or <see cref="M:System.ComponentModel.PropertyDescriptor.SetValue(System.Object,System.Object)"/> methods are invoked, the object specified might be an instance of this type.
- </returns>
- </member>
- <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.IsReadOnly">
- <summary>
- When overridden in a derived class, gets a value indicating whether this property is read-only.
- </summary>
- <returns>
- true if the property is read-only; otherwise, false.
- </returns>
- </member>
- <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.PropertyType">
- <summary>
- When overridden in a derived class, gets the type of the property.
- </summary>
- <returns>
- A <see cref="T:System.Type"/> that represents the type of the property.
- </returns>
- </member>
- <member name="P:Newtonsoft.Json.Linq.JPropertyDescriptor.NameHashCode">
- <summary>
- Gets the hash code for the name of the member.
- </summary>
- <value></value>
- <returns>
- The hash code for the name of the member.
- </returns>
- </member>
<member name="T:Newtonsoft.Json.Serialization.IReferenceResolver">
<summary>
Used to resolve references when serializing and deserializing JSON by the <see cref="T:Newtonsoft.Json.JsonSerializer"/>.
@@ -2880,7 +2932,27 @@
<summary>
Gets or sets the <see cref="T:System.Runtime.Serialization.StreamingContext"/> used by the serializer when invoking serialization callback methods.
</summary>
- <value>The context.</value>
+ <value>The context.</value>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializerSettings.Formatting">
+ <summary>
+ Indicates how JSON text output is formatted.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializerSettings.DateFormatHandling">
+ <summary>
+ Get or set how dates are written to JSON text.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializerSettings.DateTimeZoneHandling">
+ <summary>
+ Get or set how <see cref="T:System.DateTime"/> time zones are handling during serialization and deserialization.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializerSettings.Culture">
+ <summary>
+ Gets or sets the culture used when reading JSON. Defaults to <see cref="P:System.Globalization.CultureInfo.InvariantCulture"/>.
+ </summary>
</member>
<member name="T:Newtonsoft.Json.JsonValidatingReader">
<summary>
@@ -2914,6 +2986,18 @@
</summary>
<returns>A <see cref="T:System.Nullable`1"/>.</returns>
</member>
+ <member name="M:Newtonsoft.Json.JsonValidatingReader.ReadAsString">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.String"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.JsonValidatingReader.ReadAsDateTime">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
<member name="M:Newtonsoft.Json.JsonValidatingReader.ReadAsDateTimeOffset">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
@@ -2945,6 +3029,11 @@
</summary>
<value>The depth of the current token in the JSON document.</value>
</member>
+ <member name="P:Newtonsoft.Json.JsonValidatingReader.Path">
+ <summary>
+ Gets the path of the current JSON token.
+ </summary>
+ </member>
<member name="P:Newtonsoft.Json.JsonValidatingReader.QuoteChar">
<summary>
Gets the quotation mark character used to enclose the value of a string.
@@ -3097,31 +3186,6 @@
<param name="serializer">The calling serializer.</param>
<returns>The object value.</returns>
</member>
- <member name="T:Newtonsoft.Json.Converters.JsonDateTimeSerializationMode">
- <summary>
- Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.Converters.JsonDateTimeSerializationMode.Local">
- <summary>
- The time represented is local time.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.Converters.JsonDateTimeSerializationMode.Utc">
- <summary>
- The time represented is UTC.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.Converters.JsonDateTimeSerializationMode.Unspecified">
- <summary>
- The time represented is not specified as either local time or Coordinated Universal Time (UTC).
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.Converters.JsonDateTimeSerializationMode.RoundtripKind">
- <summary>
- Preserves the DateTimeKind field of a date when a DateTime object is converted to a string and the string is then converted back to a DateTime object.
- </summary>
- </member>
<member name="T:Newtonsoft.Json.Converters.XmlNodeConverter">
<summary>
Converts XML to and from JSON.
@@ -3183,7 +3247,7 @@
</member>
<member name="T:Newtonsoft.Json.JsonTextReader">
<summary>
- Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
+ Represents a reader that provides fast, non-cached, forward-only access to JSON text data.
</summary>
</member>
<member name="M:Newtonsoft.Json.JsonTextReader.#ctor(System.IO.TextReader)">
@@ -3205,26 +3269,38 @@
Reads the next JSON token from the stream as a <see cref="T:Byte[]"/>.
</summary>
<returns>
- A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null.
+ A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.
</returns>
</member>
<member name="M:Newtonsoft.Json.JsonTextReader.ReadAsDecimal">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonTextReader.ReadAsInt32">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.JsonTextReader.ReadAsString">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.String"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.JsonTextReader.ReadAsDateTime">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonTextReader.ReadAsDateTimeOffset">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.DateTimeOffset"/>.</returns>
+ <returns>A <see cref="T:System.DateTimeOffset"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.JsonTextReader.Close">
<summary>
@@ -3239,11 +3315,6 @@
<c>true</c> if LineNumber and LinePosition can be provided; otherwise, <c>false</c>.
</returns>
</member>
- <member name="P:Newtonsoft.Json.JsonTextReader.Culture">
- <summary>
- Gets or sets the culture used when reading JSON. Defaults to <see cref="P:System.Globalization.CultureInfo.InvariantCulture"/>.
- </summary>
- </member>
<member name="P:Newtonsoft.Json.JsonTextReader.LineNumber">
<summary>
Gets the current line number.
@@ -3649,6 +3720,12 @@
</summary>
<value>The line position indicating where the error occurred.</value>
</member>
+ <member name="P:Newtonsoft.Json.JsonReaderException.Path">
+ <summary>
+ Gets the path to the JSON where the error occurred.
+ </summary>
+ <value>The path to the JSON where the error occurred.</value>
+ </member>
<member name="T:Newtonsoft.Json.JsonConverterCollection">
<summary>
Represents a collection of <see cref="T:Newtonsoft.Json.JsonConverter"/>.
@@ -3701,6 +3778,15 @@
<param name="value">The value to convert.</param>
<returns>A JSON string representation of the <see cref="T:System.DateTime"/>.</returns>
</member>
+ <member name="M:Newtonsoft.Json.JsonConvert.ToString(System.DateTime,Newtonsoft.Json.DateFormatHandling,Newtonsoft.Json.DateTimeZoneHandling)">
+ <summary>
+ Converts the <see cref="T:System.DateTime"/> to its JSON string representation using the <see cref="T:Newtonsoft.Json.DateFormatHandling"/> specified.
+ </summary>
+ <param name="value">The value to convert.</param>
+ <param name="format">The format the date will be converted to.</param>
+ <param name="timeZoneHandling">The time zone handling when the date is converted to a string.</param>
+ <returns>A JSON string representation of the <see cref="T:System.DateTime"/>.</returns>
+ </member>
<member name="M:Newtonsoft.Json.JsonConvert.ToString(System.DateTimeOffset)">
<summary>
Converts the <see cref="T:System.DateTimeOffset"/> to its JSON string representation.
@@ -3708,6 +3794,14 @@
<param name="value">The value to convert.</param>
<returns>A JSON string representation of the <see cref="T:System.DateTimeOffset"/>.</returns>
</member>
+ <member name="M:Newtonsoft.Json.JsonConvert.ToString(System.DateTimeOffset,Newtonsoft.Json.DateFormatHandling)">
+ <summary>
+ Converts the <see cref="T:System.DateTimeOffset"/> to its JSON string representation using the <see cref="T:Newtonsoft.Json.DateFormatHandling"/> specified.
+ </summary>
+ <param name="value">The value to convert.</param>
+ <param name="format">The format the date will be converted to.</param>
+ <returns>A JSON string representation of the <see cref="T:System.DateTimeOffset"/>.</returns>
+ </member>
<member name="M:Newtonsoft.Json.JsonConvert.ToString(System.Boolean)">
<summary>
Converts the <see cref="T:System.Boolean"/> to its JSON string representation.
@@ -3883,6 +3977,17 @@
<param name="converters">A collection converters used while serializing.</param>
<returns>A JSON string representation of the object.</returns>
</member>
+ <member name="M:Newtonsoft.Json.JsonConvert.SerializeObject(System.Object,Newtonsoft.Json.JsonSerializerSettings)">
+ <summary>
+ Serializes the specified object to a JSON string using a collection of <see cref="T:Newtonsoft.Json.JsonConverter"/>.
+ </summary>
+ <param name="value">The object to serialize.</param>
+ <param name="settings">The <see cref="T:Newtonsoft.Json.JsonSerializerSettings"/> used to serialize the object.
+ If this is null, default serialization settings will be is used.</param>
+ <returns>
+ A JSON string representation of the object.
+ </returns>
+ </member>
<member name="M:Newtonsoft.Json.JsonConvert.SerializeObject(System.Object,Newtonsoft.Json.Formatting,Newtonsoft.Json.JsonSerializerSettings)">
<summary>
Serializes the specified object to a JSON string using a collection of <see cref="T:Newtonsoft.Json.JsonConverter"/>.
@@ -4301,6 +4406,26 @@
</summary>
<value>The context.</value>
</member>
+ <member name="P:Newtonsoft.Json.JsonSerializer.Formatting">
+ <summary>
+ Indicates how JSON text output is formatted.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializer.DateFormatHandling">
+ <summary>
+ Get or set how dates are written to JSON text.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializer.DateTimeZoneHandling">
+ <summary>
+ Get or set how <see cref="T:System.DateTime"/> time zones are handling during serialization and deserialization.
+ </summary>
+ </member>
+ <member name="P:Newtonsoft.Json.JsonSerializer.Culture">
+ <summary>
+ Gets or sets the culture used when reading JSON. Defaults to <see cref="P:System.Globalization.CultureInfo.InvariantCulture"/>.
+ </summary>
+ </member>
<member name="T:Newtonsoft.Json.Linq.Extensions">
<summary>
Contains the LINQ to JSON extension methods.
@@ -4432,12 +4557,6 @@
</summary>
<param name="e">The <see cref="T:System.ComponentModel.ListChangedEventArgs"/> instance containing the event data.</param>
</member>
- <member name="M:Newtonsoft.Json.Linq.JContainer.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)">
- <summary>
- Raises the <see cref="E:Newtonsoft.Json.Linq.JContainer.CollectionChanged"/> event.
- </summary>
- <param name="e">The <see cref="T:System.Collections.Specialized.NotifyCollectionChangedEventArgs"/> instance containing the event data.</param>
- </member>
<member name="M:Newtonsoft.Json.Linq.JContainer.Children">
<summary>
Returns a collection of the child tokens of this token, in document order.
@@ -4500,11 +4619,6 @@
Occurs before an item is added to the collection.
</summary>
</member>
- <member name="E:Newtonsoft.Json.Linq.JContainer.CollectionChanged">
- <summary>
- Occurs when the items list of the collection has changed, or the collection is reset.
- </summary>
- </member>
<member name="P:Newtonsoft.Json.Linq.JContainer.ChildrenTokens">
<summary>
Gets the container's children tokens.
@@ -4891,15 +5005,6 @@
An <see cref="T:System.Object"/> that represents the owner of the specified property.
</returns>
</member>
- <member name="M:Newtonsoft.Json.Linq.JObject.GetMetaObject(System.Linq.Expressions.Expression)">
- <summary>
- Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
- </summary>
- <param name="parameter">The expression tree representation of the runtime value.</param>
- <returns>
- The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
- </returns>
- </member>
<member name="P:Newtonsoft.Json.Linq.JObject.ChildrenTokens">
<summary>
Gets the container's children tokens.
@@ -5098,26 +5203,38 @@
Reads the next JSON token from the stream as a <see cref="T:Byte[]"/>.
</summary>
<returns>
- A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null.
+ A <see cref="T:Byte[]"/> or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.
</returns>
</member>
<member name="M:Newtonsoft.Json.Linq.JTokenReader.ReadAsDecimal">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.Linq.JTokenReader.ReadAsInt32">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JTokenReader.ReadAsString">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.String"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
+ </member>
+ <member name="M:Newtonsoft.Json.Linq.JTokenReader.ReadAsDateTime">
+ <summary>
+ Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
+ </summary>
+ <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.Linq.JTokenReader.ReadAsDateTimeOffset">
<summary>
Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
</summary>
- <returns>A <see cref="T:System.Nullable`1"/>.</returns>
+ <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
</member>
<member name="M:Newtonsoft.Json.Linq.JTokenReader.Read">
<summary>
@@ -5502,6 +5619,17 @@
<c>true</c> if the specified <see cref="T:Newtonsoft.Json.Linq.JToken"/> is valid; otherwise, <c>false</c>.
</returns>
</member>
+ <member name="M:Newtonsoft.Json.Schema.Extensions.IsValid(Newtonsoft.Json.Linq.JToken,Newtonsoft.Json.Schema.JsonSchema,System.Collections.Generic.IList{System.String}@)">
+ <summary>
+ Determines whether the <see cref="T:Newtonsoft.Json.Linq.JToken"/> is valid.
+ </summary>
+ <param name="source">The source <see cref="T:Newtonsoft.Json.Linq.JToken"/> to test.</param>
+ <param name="schema">The schema to test with.</param>
+ <param name="errorMessages">When this method returns, contains any error messages generated while validating. </param>
+ <returns>
+ <c>true</c> if the specified <see cref="T:Newtonsoft.Json.Linq.JToken"/> is valid; otherwise, <c>false</c>.
+ </returns>
+ </member>
<member name="M:Newtonsoft.Json.Schema.Extensions.Validate(Newtonsoft.Json.Linq.JToken,Newtonsoft.Json.Schema.JsonSchema)">
<summary>
Validates the specified <see cref="T:Newtonsoft.Json.Linq.JToken"/>.
@@ -5563,6 +5691,12 @@
</summary>
<value>The line position indicating where the error occurred.</value>
</member>
+ <member name="P:Newtonsoft.Json.Schema.JsonSchemaException.Path">
+ <summary>
+ Gets the path to the JSON where the error occurred.
+ </summary>
+ <value>The path to the JSON where the error occurred.</value>
+ </member>
<member name="T:Newtonsoft.Json.Schema.JsonSchemaResolver">
<summary>
Resolves <see cref="T:Newtonsoft.Json.Schema.JsonSchema"/> from an id.
@@ -5613,13 +5747,19 @@
</member>
<member name="P:Newtonsoft.Json.Schema.ValidationEventArgs.Exception">
<summary>
- Gets the <see cref="T:Newtonsoft.Json.Schema.JsonSchemaException"/> associated with the validation event.
+ Gets the <see cref="T:Newtonsoft.Json.Schema.JsonSchemaException"/> associated with the validation error.
</summary>
- <value>The JsonSchemaException associated with the validation event.</value>
+ <value>The JsonSchemaException associated with the validation error.</value>
+ </member>
+ <member name="P:Newtonsoft.Json.Schema.ValidationEventArgs.Path">
+ <summary>
+ Gets the path of the JSON location where the validation error occurred.
+ </summary>
+ <value>The path of the JSON location where the validation error occurred.</value>
</member>
<member name="P:Newtonsoft.Json.Schema.ValidationEventArgs.Message">
<summary>
- Gets the text description corresponding to the validation event.
+ Gets the text description corresponding to the validation error.
</summary>
<value>The text description.</value>
</member>
@@ -5745,13 +5885,6 @@
<param name="objectType">Type of the object.</param>
<returns>A <see cref="T:Newtonsoft.Json.Serialization.JsonISerializableContract"/> for the given type.</returns>
</member>
- <member name="M:Newtonsoft.Json.Serialization.DefaultContractResolver.CreateDynamicContract(System.Type)">
- <summary>
- Creates a <see cref="T:Newtonsoft.Json.Serialization.JsonDynamicContract"/> for the given type.
- </summary>
- <param name="objectType">Type of the object.</param>
- <returns>A <see cref="T:Newtonsoft.Json.Serialization.JsonDynamicContract"/> for the given type.</returns>
- </member>
<member name="M:Newtonsoft.Json.Serialization.DefaultContractResolver.CreateStringContract(System.Type)">
<summary>
Creates a <see cref="T:Newtonsoft.Json.Serialization.JsonStringContract"/> for the given type.
@@ -5819,6 +5952,14 @@
<c>true</c> if serialized compiler generated members; otherwise, <c>false</c>.
</value>
</member>
+ <member name="P:Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreSerializableInterface">
+ <summary>
+ Gets or sets a value indicating whether to ignore the ISerializable interface when serializing and deserializing types.
+ </summary>
+ <value>
+ <c>true</c> if the ISerializable interface will be ignored when serializing and deserializing types; otherwise, <c>false</c>.
+ </value>
+ </member>
<member name="M:Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver.#ctor">
<summary>
Initializes a new instance of the <see cref="T:Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver"/> class.
@@ -5846,14 +5987,6 @@
The type of the object the formatter creates a new instance of.
</returns>
</member>
- <member name="M:Newtonsoft.Json.Serialization.DefaultSerializationBinder.BindToName(System.Type,System.String@,System.String@)">
- <summary>
- When overridden in a derived class, controls the binding of a serialized object to a type.
- </summary>
- <param name="serializedType">The type of the object the formatter creates a new instance of.</param>
- <param name="assemblyName">Specifies the <see cref="T:System.Reflection.Assembly"/> name of the serialized object. </param>
- <param name="typeName">Specifies the <see cref="T:System.Type"/> name of the serialized object. </param>
- </member>
<member name="T:Newtonsoft.Json.Serialization.ErrorContext">
<summary>
Provides information surrounding an error.
@@ -5877,6 +6010,12 @@
</summary>
<value>The member that caused the error.</value>
</member>
+ <member name="P:Newtonsoft.Json.Serialization.ErrorContext.Path">
+ <summary>
+ Gets the path of the JSON location where the error occurred.
+ </summary>
+ <value>The path of the JSON location where the error occurred.</value>
+ </member>
<member name="P:Newtonsoft.Json.Serialization.ErrorContext.Handled">
<summary>
Gets or sets a value indicating whether this <see cref="T:Newtonsoft.Json.Serialization.ErrorContext"/> is handled.
@@ -5894,6 +6033,12 @@
</summary>
<param name="underlyingType">The underlying type for the contract.</param>
</member>
+ <member name="P:Newtonsoft.Json.Serialization.JsonArrayContract.CollectionItemType">
+ <summary>
+ Gets the <see cref="T:System.Type"/> of the collection items.
+ </summary>
+ <value>The <see cref="T:System.Type"/> of the collection items.</value>
+ </member>
<member name="T:Newtonsoft.Json.Serialization.JsonDictionaryContract">
<summary>
Contract details for a <see cref="T:System.Type"/> used by the <see cref="T:Newtonsoft.Json.JsonSerializer"/>.
@@ -5911,6 +6056,18 @@
</summary>
<value>The property name resolver.</value>
</member>
+ <member name="P:Newtonsoft.Json.Serialization.JsonDictionaryContract.DictionaryKeyType">
+ <summary>
+ Gets the <see cref="T:System.Type"/> of the dictionary keys.
+ </summary>
+ <value>The <see cref="T:System.Type"/> of the dictionary keys.</value>
+ </member>
+ <member name="P:Newtonsoft.Json.Serialization.JsonDictionaryContract.DictionaryValueType">
+ <summary>
+ Gets the <see cref="T:System.Type"/> of the dictionary values.
+ </summary>
+ <value>The <see cref="T:System.Type"/> of the dictionary values.</value>
+ </member>
<member name="T:Newtonsoft.Json.Serialization.JsonProperty">
<summary>
Maps a JSON property to a .NET member or constructor parameter.
@@ -6532,14 +6689,6 @@
</summary>
<value>The parametrized constructor.</value>
</member>
- <member name="M:Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeDynamic(Newtonsoft.Json.JsonWriter,System.Dynamic.IDynamicMetaObjectProvider,Newtonsoft.Json.Serialization.JsonDynamicContract)">
- <summary>
- Serializes the dynamic.
- </summary>
- <param name="writer">The writer.</param>
- <param name="value">The value.</param>
- <param name="contract">The contract.</param>
- </member>
<member name="T:Newtonsoft.Json.Serialization.JsonStringContract">
<summary>
Contract details for a <see cref="T:System.Type"/> used by the <see cref="T:Newtonsoft.Json.JsonSerializer"/>.
@@ -6581,32 +6730,6 @@
When applied to a method, specifies that the method is called when an error occurs serializing an object.
</summary>
</member>
- <member name="M:Newtonsoft.Json.Utilities.DynamicProxyMetaObject`1.CallMethodWithResult(System.String,System.Dynamic.DynamicMetaObjectBinder,System.Linq.Expressions.Expression[],Newtonsoft.Json.Utilities.DynamicProxyMetaObject{`0}.Fallback,Newtonsoft.Json.Utilities.DynamicProxyMetaObject{`0}.Fallback)">
- <summary>
- Helper method for generating a MetaObject which calls a
- specific method on Dynamic that returns a result
- </summary>
- </member>
- <member name="M:Newtonsoft.Json.Utilities.DynamicProxyMetaObject`1.CallMethodReturnLast(System.String,System.Dynamic.DynamicMetaObjectBinder,System.Linq.Expressions.Expression[],Newtonsoft.Json.Utilities.DynamicProxyMetaObject{`0}.Fallback)">
- <summary>
- Helper method for generating a MetaObject which calls a
- specific method on Dynamic, but uses one of the arguments for
- the result.
- </summary>
- </member>
- <member name="M:Newtonsoft.Json.Utilities.DynamicProxyMetaObject`1.CallMethodNoResult(System.String,System.Dynamic.DynamicMetaObjectBinder,System.Linq.Expressions.Expression[],Newtonsoft.Json.Utilities.DynamicProxyMetaObject{`0}.Fallback)">
- <summary>
- Helper method for generating a MetaObject which calls a
- specific method on Dynamic, but uses one of the arguments for
- the result.
- </summary>
- </member>
- <member name="M:Newtonsoft.Json.Utilities.DynamicProxyMetaObject`1.GetRestrictions">
- <summary>
- Returns a Restrictions object which includes our current restrictions merged
- with a restriction limiting our type
- </summary>
- </member>
<member name="T:Newtonsoft.Json.Serialization.ObjectConstructor`1">
<summary>
Represents a method that constructs an object.
@@ -6784,63 +6907,6 @@
Byte data.
</summary>
</member>
- <member name="T:Newtonsoft.Json.WriteState">
- <summary>
- Specifies the state of the <see cref="T:Newtonsoft.Json.JsonWriter"/>.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Error">
- <summary>
- An exception has been thrown, which has left the <see cref="T:Newtonsoft.Json.JsonWriter"/> in an invalid state.
- You may call the <see cref="M:Newtonsoft.Json.JsonWriter.Close"/> method to put the <see cref="T:Newtonsoft.Json.JsonWriter"/> in the <c>Closed</c> state.
- Any other <see cref="T:Newtonsoft.Json.JsonWriter"/> method calls results in an <see cref="T:System.InvalidOperationException"/> being thrown.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Closed">
- <summary>
- The <see cref="M:Newtonsoft.Json.JsonWriter.Close"/> method has been called.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Object">
- <summary>
- An object is being written.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Array">
- <summary>
- A array is being written.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Constructor">
- <summary>
- A constructor is being written.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Property">
- <summary>
- A property is being written.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.WriteState.Start">
- <summary>
- A write method has not been called.
- </summary>
- </member>
- <member name="T:Newtonsoft.Json.Formatting">
- <summary>
- Specifies formatting options for the <see cref="T:Newtonsoft.Json.JsonTextWriter"/>.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.Formatting.None">
- <summary>
- No special formatting is applied. This is the default.
- </summary>
- </member>
- <member name="F:Newtonsoft.Json.Formatting.Indented">
- <summary>
- Causes child objects to be indented according to the <see cref="P:Newtonsoft.Json.JsonTextWriter.Indentation"/> and <see cref="P:Newtonsoft.Json.JsonTextWriter.IndentChar"/> settings.
- </summary>
- </member>
<member name="T:Newtonsoft.Json.Utilities.StringBuffer">
<summary>
Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.
@@ -6957,5 +7023,47 @@
<param name="s">The string.</param>
<returns>Null if the string was null, otherwise the string unchanged.</returns>
</member>
+ <member name="T:Newtonsoft.Json.WriteState">
+ <summary>
+ Specifies the state of the <see cref="T:Newtonsoft.Json.JsonWriter"/>.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.WriteState.Error">
+ <summary>
+ An exception has been thrown, which has left the <see cref="T:Newtonsoft.Json.JsonWriter"/> in an invalid state.
+ You may call the <see cref="M:Newtonsoft.Json.JsonWriter.Close"/> method to put the <see cref="T:Newtonsoft.Json.JsonWriter"/> in the <c>Closed</c> state.
+ Any other <see cref="T:Newtonsoft.Json.JsonWriter"/> method calls results in an <see cref="T:System.InvalidOperationException"/> being thrown.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.WriteState.Closed">
+ <summary>
+ The <see cref="M:Newtonsoft.Json.JsonWriter.Close"/> method has been called.
+ </summary>
+ </member>
+ <member name="F:Newtonsoft.Json.WriteState.Object">
+ <summary>