public void TryGetRawValue_emptyEvent_shouldReturnDbNull()
        {
            // Arrange
            var       renderer       = new DbNullLayoutRenderer();
            IRawValue rawValueGetter = renderer;

            // Act
            var result = rawValueGetter.TryGetRawValue(LogEventInfo.CreateNullEvent(), out var resultValue);

            // Assert
            Assert.Equal(DBNull.Value, resultValue);
            Assert.True(result);
        }
示例#2
0
 public MtaRawValue(IRawValue s)
 {
     source = s;
 }
示例#3
0
 void IRawObject.Connect(DebuggerSession session, EvaluationOptions options)
 {
     this.options = options;
     source       = session.WrapDebuggerObject(source);
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Mono.Debugging.Client.RawValue"/> class.
 /// </summary>
 /// <param name='source'>
 /// Value source
 /// </param>
 public RawValue(IRawValue source)
 {
     this.source = source;
 }
示例#5
0
		public MtaRawValue (IRawValue s)
		{
			source = s;
		}
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Mono.Debugging.Client.RawValue"/> class.
 /// </summary>
 /// <param name='source'>
 /// Value source
 /// </param>
 public RawValue(IRawValue source)
 {
     this.source = source;
 }
示例#7
0
 void IRawObject.Connect(DebuggerSession session, EvaluationOptions options)
 {
     this.options = options;
     source = session.WrapDebuggerObject (source);
 }
 public void SetRawValue(ObjectPath path, IRawValue value, IEvaluationOptions options)
 {
     throw new NotSupportedException();
 }