public void GetStringLength_ShouldReturnTheTypeLength(string key, int expectedLength) { // Prepare var gVariant = _gSettings.GetValue(key); var gVariantType = gVariant.GetVariantType(); // Execute var bufferSize = gVariantType.GetStringLength(); // Verify bufferSize.Should().Be(expectedLength); }
public void GetVariantType_ShouldReturnsTheObjectType(string key, string gVariantTypeString) { // Prepare var gVariant = _gSettings.GetValue(key); // Execute var variantType = gVariant.GetVariantType(); var typeAsString = variantType.TypePeekString(); // Verify Assert.Equal(gVariantTypeString, typeAsString); }