Gems/Atom/RPI/Code/Tests/Buffer/BufferTests.cpp
TEST_F(BufferTests, SerializeDeserialize)
    {
        using namespace AZ;

        ExpectedBuffer expectedBuffer;

        Data::Asset<RPI::BufferAsset> bufferAsset = BuildTestBuffer(expectedBuffer);

        SerializeTester<RPI::BufferAsset> tester(GetSerializeContext());
        tester.SerializeOut(bufferAsset.Get());

        Data::Asset<RPI::BufferAsset> serializedBufferAsset = tester.SerializeIn(Data::AssetId(Uuid::CreateRandom()));
        ValidateBufferAsset(serializedBufferAsset.Get(), expectedBuffer);
    }
// Test that a buffer can be created, serialized and de-serialized 
// without losing any data.
Test that a buffer can be created, serialized and de-serialized
without losing any data.
Test that a buffer can be created serialized and de - serialized without losing any data .
TEST_F(BufferTests, SerializeDeserialize)
    {
        using namespace AZ;
        ExpectedBuffer expectedBuffer;
        Data::Asset<RPI::BufferAsset> bufferAsset = BuildTestBuffer(expectedBuffer);
        SerializeTester<RPI::BufferAsset> tester(GetSerializeContext());
        tester.SerializeOut(bufferAsset.Get());
        Data::Asset<RPI::BufferAsset> serializedBufferAsset = tester.SerializeIn(Data::AssetId(Uuid::CreateRandom()));
        ValidateBufferAsset(serializedBufferAsset.Get(), expectedBuffer);
    }
TEST_F ( BufferTests , SerializeDeserialize ) { using namespace AZ ; ExpectedBuffer expectedBuffer ; Data :: Asset < RPI :: BufferAsset > bufferAsset = BuildTestBuffer ( expectedBuffer ) ; SerializeTester < RPI :: BufferAsset > tester ( GetSerializeContext ( ) ) ; tester . SerializeOut ( bufferAsset . Get ( ) ) ; Data :: Asset < RPI :: BufferAsset > serializedBufferAsset = tester . SerializeIn ( Data :: AssetId ( Uuid :: CreateRandom ( ) ) ) ; ValidateBufferAsset ( serializedBufferAsset . Get ( ) , expectedBuffer ) ; }
Test that a buffer can be created, serialized and de-serialized
without losing any data.
Test that a buffer can be created serialized and de - serialized without losing any data .