コード例 #1
0
        public When_deserializing_AccessTokenResponse_Should_deserialize(ITestOutputHelper output)
        {
            _json = SampleJson.AccessTokenResponse;
            _sut  = _json.ToObject <AccessTokenResponse>();

            output.WriteLine("Serialized JSON:" + Environment.NewLine + _json);
        }
コード例 #2
0
        public AccessTokenResponse_Should_calculate(ITestOutputHelper output)
        {
            JObject json = SampleJson.AccessTokenResponse;

            _sut = json.ToObject <AccessTokenResponse>();

            output.WriteLine("Serialized JSON:" + Environment.NewLine + json);
        }
コード例 #3
0
        public When_serializing_AccessTokenResponse_Should_serialize(ITestOutputHelper output)
            : base(output)
        {
            _sut  = Fixture.Create <AccessTokenResponse>();
            _json = JObject.FromObject(_sut);

            output.WriteLine("Serialized JSON:" + Environment.NewLine + _json);
        }
コード例 #4
0
        public When_serializing_and_deserializing_AccessTokenResponse(ITestOutputHelper output)
            : base(output)
        {
            _expected = Fixture.Create <AccessTokenResponse>();
            JObject json = JObject.FromObject(_expected);

            output.WriteLine("Serialized JSON:" + Environment.NewLine + json);

            _actual = json.ToObject <AccessTokenResponse>();
        }
コード例 #5
0
 public When_running_in_the_debugger_AccessTokenResponse_Should(ITestOutputHelper output)
     : base(output)
 {
     _sut = Fixture.Create <AccessTokenResponse>();
     GetDebuggerDisplay(_sut);
 }