The mobile app vault (iOS and Android).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
708 B

using Bit.Core.Models.Data;
using Bit.Core.Models.Response;
using Bit.Core.Test.AutoFixture;
using Bit.Test.Common;
using Bit.Test.Common.AutoFixture.Attributes;
using Xunit;
namespace Bit.Core.Test.Models.Data
{
public class SendDataTests
{
[Theory]
[InlineCustomAutoData(new[] { typeof(TextSendCustomization) })]
[InlineCustomAutoData(new[] { typeof(FileSendCustomization) })]
public void SendData_FromSendResponse_Success(string userId, SendResponse response)
{
var data = new SendData(response, userId);
TestHelper.AssertPropertyEqual(response, data, "UserId");
Assert.Equal(data.UserId, userId);
}
}
}