Sha256: 64d07abdc23fc51c53af57f9486c1ccb14057d0e4135712da1eba4daa2941afe

Contents?: true

Size: 1.5 KB

Versions: 60

Compression:

Stored size: 1.5 KB

Contents

// This file was auto-generated based on version 1.0.1 of the canonical data.

using Xunit;
using System;

public class RnaTranscriptionTest
{
    [Fact]
    public void Rna_complement_of_cytosine_is_guanine()
    {
        Assert.Equal("G", RnaTranscription.ToRna("C"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement_of_guanine_is_cytosine()
    {
        Assert.Equal("C", RnaTranscription.ToRna("G"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement_of_thymine_is_adenine()
    {
        Assert.Equal("A", RnaTranscription.ToRna("T"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement_of_adenine_is_uracil()
    {
        Assert.Equal("U", RnaTranscription.ToRna("A"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Rna_complement()
    {
        Assert.Equal("UGCACCAGAAUU", RnaTranscription.ToRna("ACGTGGTCTTAA"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Correctly_handles_invalid_input_rna_instead_of_dna_()
    {
        Assert.Throws<ArgumentException>(() => RnaTranscription.ToRna("U"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Correctly_handles_completely_invalid_dna_input()
    {
        Assert.Throws<ArgumentException>(() => RnaTranscription.ToRna("XXX"));
    }

    [Fact(Skip = "Remove to run test")]
    public void Correctly_handles_partially_invalid_dna_input()
    {
        Assert.Throws<ArgumentException>(() => RnaTranscription.ToRna("ACGTXXXCTTAA"));
    }
}

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
trackler-2.2.1.33 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.32 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.31 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.30 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.29 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.28 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.27 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.26 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.25 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.24 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.23 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.22 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.21 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.20 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.19 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.18 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.17 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.16 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.15 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs
trackler-2.2.1.14 tracks/csharp/exercises/rna-transcription/RnaTranscriptionTest.cs